1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00
Commit Graph

3616 Commits

Author SHA1 Message Date
Rob Rix
c41364a743 Remove the remaining annotatedToRows tests. 2015-12-22 16:28:49 -05:00
Rob Rix
9a496a6be5 Populate the indexed term with leaves. 2015-12-22 16:26:24 -05:00
Rob Rix
1b90bc0291 Add a function to construct a leaf from a pair of line ranges. 2015-12-22 16:26:07 -05:00
Rob Rix
6510e95526 Test that we always produce the maximum of the lines in two sources. 2015-12-22 16:10:05 -05:00
Rob Rix
603e750d67 Remove an unused let binding. 2015-12-22 15:55:59 -05:00
Rob Rix
ef027dba36 Test that we preserve the line counts in equal diffs. 2015-12-22 15:48:37 -05:00
Rob Rix
9e6f415dc6 Port the single-line empty unchanged indexed diff test to splitAnnotatedByLines. 2015-12-22 15:38:18 -05:00
Rob Rix
cf82488820 codeTd takes a “has changes” flag again.
We always pass `False` currently.
2015-12-22 15:29:16 -05:00
Rob Rix
20817152c2 Rename the line contents binding. 2015-12-22 15:20:46 -05:00
Rob Rix
6e20ad6a9c Revert "Enable RankNTypes."
This reverts commit 8fce071dc9a45ff1ecb9d683980fc584a358eece.
2015-12-22 15:17:55 -05:00
Rob Rix
7462ace01b Revert "Add a function to find an open diff given a source string & left/right selector."
This reverts commit 311f426726c3bbd409450444e3cc67d36510bbbe.
2015-12-22 15:17:44 -05:00
Rob Rix
b6c4969bdd Revert "Rephrase openDiff2 to accept a pair of sources & apply the selector to the pair."
This reverts commit c22e9a3937f9bfdd91382fd20c29b681ccb18927.
2015-12-22 15:17:38 -05:00
Rob Rix
73fd8b3d91 Revert "Rename the string parameters in split."
This reverts commit 46733254edb4a0ce79c49491753385622890758f.
2015-12-22 15:17:34 -05:00
Rob Rix
37afcfbc04 Revert "Add a recursive function to split a Diff into a SplitDiff."
This reverts commit e5ecdf3a0bbf3bd8a97dd210b8dedc6304e55e5d.
2015-12-22 15:17:29 -05:00
Rob Rix
610133fdb3 Revert "Fanout values into pairs."
This reverts commit 21bb26bb43b87d265ced27f30570283009822769.
2015-12-22 15:17:26 -05:00
Rob Rix
9cd5268642 Revert "Split diffs into left/right Diffs instead of SplitDiffs."
This reverts commit 1f71599a59b15f90fcd1a2c2f33b97b35c21ce65.
2015-12-22 15:17:21 -05:00
Rob Rix
cff90ee11b Split diffs into left/right Diffs instead of SplitDiffs. 2015-12-22 15:17:17 -05:00
Rob Rix
5c27b16705 Fanout values into pairs. 2015-12-22 15:16:31 -05:00
Rob Rix
ecc1820a07 Add a recursive function to split a Diff into a SplitDiff. 2015-12-22 15:15:50 -05:00
Rob Rix
2768459246 Rename the string parameters in split. 2015-12-22 15:13:04 -05:00
Rob Rix
eaab1d73b2 Rephrase openDiff2 to accept a pair of sources & apply the selector to the pair. 2015-12-22 14:55:39 -05:00
Rob Rix
b518c4702c Add a function to find an open diff given a source string & left/right selector. 2015-12-22 14:54:32 -05:00
Rob Rix
c41a2cfccc Enable RankNTypes. 2015-12-22 14:53:29 -05:00
Rob Rix
b3c0802e55 Use the abstracted predicate. 2015-12-22 14:44:57 -05:00
Rob Rix
780c8247a3 Abstract out a predicate for terms on a single line. 2015-12-22 14:44:49 -05:00
Rob Rix
b970f02c1d Don’t offset arbitrary leaves. 2015-12-22 13:38:44 -05:00
Rob Rix
bf05d63401 Rename the tripling function. 2015-12-22 13:31:31 -05:00
Rob Rix
5a552dc97c Simplify the single-line unchanged leaf property. 2015-12-22 13:29:36 -05:00
Rob Rix
0422098f9b arbitraryLeaf doesn’t construct terms. 2015-12-22 13:29:12 -05:00
Rob Rix
aaaf8f27a4 Stub in a function to make arbitrary leaves & sources in some type. 2015-12-22 13:16:03 -05:00
Rob Rix
3d98361301 Highlight the .patch class. 2015-12-22 13:09:10 -05:00
Rob Rix
17a9de76ae Highlight patches within any code cell. 2015-12-22 13:09:02 -05:00
Rob Rix
0775f90ce4 Syntax highlight categories. 2015-12-22 13:06:37 -05:00
Rob Rix
867772d749 Remove the corresponding annotatedToRows test. 2015-12-22 13:04:39 -05:00
Rob Rix
2a8a879590 Remove the hard-coded test. 2015-12-22 13:04:33 -05:00
Rob Rix
c4da8fb229 Generalize the single-line leaf test to arbitrary sources. 2015-12-22 13:04:07 -05:00
Rob Rix
690966086e Remove some redundant parentheses. 2015-12-22 12:54:01 -05:00
Rob Rix
38a317156b Move arbitrary term generation into its own module. 2015-12-22 12:53:31 -05:00
Rob Rix
fbe899be21 Remove the changed flag from Line. 2015-12-22 12:47:12 -05:00
Rob Rix
3b3a62a777 Test that single-line leaves are split correctly. 2015-12-22 12:39:54 -05:00
Rob Rix
fc053ffa13 Replace the old row rendering with the new row rendering. 2015-12-22 12:26:43 -05:00
Rob Rix
b76be23b6e Map rows into renderables. 2015-12-22 12:22:00 -05:00
Rob Rix
a72e6b868f Split into rows. 2015-12-22 12:14:26 -05:00
Rob Rix
d0460f8792 Wrap patches in a div. 2015-12-22 11:41:14 -05:00
Rob Rix
ab951a9c6b Define toMarkup over Renderable SplitDiffs by iteration. 2015-12-22 11:38:19 -05:00
Rob Rix
0af18aa16d Define toMarkup for Renderable terms via the Renderable syntax instance. 2015-12-22 11:28:20 -05:00
Rob Rix
0c7a59f9c9 Define toMarkup over Renderable ranged syntax. 2015-12-22 11:26:29 -05:00
Rob Rix
5e361e7548 Stub in a definition of toMarkup over Renderable free SplitDiffs. 2015-12-22 10:58:21 -05:00
Rob Rix
eab354c5f9 Define a ToMarkup instance over Renderable pure SplitDiffs. 2015-12-22 10:56:23 -05:00
Rob Rix
25a524ce22 Define toMarkup over Renderable keyed terms. 2015-12-22 10:55:28 -05:00