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

257 Commits

Author SHA1 Message Date
Rob Rix
4d3c335146 Use a single cost function for both diffs. 2015-11-12 17:44:52 -05:00
Rob Rix
2963a76943 Simplify the refineLeafReplacement function. 2015-11-12 16:54:55 -05:00
Rob Rix
db5307a365 Benchmark diffing within leaves separately. 2015-11-12 15:07:00 -05:00
joshvera
2fc0349be3 Pass lines and columns to refined leaves 2015-11-09 15:21:59 -05:00
joshvera
f77b899377 Merge branch 'master' into line-numbers 2015-11-09 12:06:48 -05:00
joshvera
576457a3fe take a before and after line number range 2015-11-08 15:21:14 -05:00
Rob Rix
128132ac26 Correct the equality test over terms. 2015-11-05 17:38:40 -05:00
Rob Rix
95596ba60c Use the same cost function as for the overall diff. 2015-11-05 17:37:01 -05:00
Rob Rix
9be8a18bad Use a better cost function. 2015-11-05 17:36:01 -05:00
Rob Rix
c441eaf862 Use the correct index. 2015-11-05 17:34:28 -05:00
Rob Rix
99d3fcb1ab Allow replacement of characters. 2015-11-05 17:30:29 -05:00
Rob Rix
b6d59ff7ef Refine leaves in the output diff. 2015-11-05 17:26:14 -05:00
Rob Rix
82b40bd043 Partial application. 2015-11-05 17:26:06 -05:00
Rob Rix
e4db8a5f14 Refine patches. 2015-11-05 17:18:56 -05:00
Rob Rix
e668deb9f4 Produce the appropriate diffs. 2015-11-05 17:11:09 -05:00
Rob Rix
c6ec6fa311 Add a property computing a single-element range from an index. 2015-11-05 17:10:41 -05:00
Rob Rix
ead261d459 Disallow replacements. 2015-11-05 17:00:53 -05:00
Rob Rix
21ab49a97b Allow replacements. 2015-11-05 16:56:18 -05:00
Rob Rix
e9e962dfe5 Do SES on the substrings. 2015-11-05 16:53:16 -05:00
Rob Rix
8872c67c52 Only match leaves. 2015-11-05 16:52:54 -05:00
Rob Rix
6327829f6e Replace pures. 2015-11-05 16:49:24 -05:00
Rob Rix
4d4d077e1b Stub in a leaf replacement refinement function. 2015-11-05 16:23:49 -05:00
joshvera
aeaabfd6a9 update Info.== 2015-11-04 16:06:54 -05:00
joshvera
eff47e0a3e Construct terms with line and column info 2015-11-04 15:12:22 -05:00
joshvera
2cb3521cb0 Pass Line and Column to Info 2015-11-04 15:11:01 -05:00
joshvera
7f014eff8e Merge branch 'master' into syntax-highlighting 2015-11-03 17:09:06 -05:00
Rob Rix
ad3462b135 Terms are annotated with their categories in the JSON too. 2015-11-03 13:20:38 -05:00
Rob Rix
75400c4065 Serialize annotations out in full. 2015-11-03 13:08:32 -05:00
Rob Rix
db614b5b16 Benchmark loading sources. 2015-11-03 11:56:01 -05:00
Rob Rix
17d101f17c Move ChildrenCollection outside of TSNode.
This is necessary to be able to link in release config.
2015-11-03 10:20:31 -05:00
Rob Rix
a0b3738ee2 Benchmark parsing both inputs. 2015-11-03 10:20:15 -05:00
Rob Rix
74fa7ba1b4 Benchmark diffing. 2015-11-03 10:20:11 -05:00
Rob Rix
c1b7993895 Benchmark formatting with a label. 2015-11-03 10:20:02 -05:00
Rob Rix
2651c5ac51 benchmark rethrows. 2015-11-03 10:19:51 -05:00
Rob Rix
3865fe9e71 Fix the test of dumbness. 2015-11-02 18:09:14 -05:00
Rob Rix
2ec0a752a0 Remove an unused value. 2015-11-02 18:06:54 -05:00
Rob Rix
586e8cdf6b Consider nil TERM to be dumb. 2015-11-02 18:06:23 -05:00
Rob Rix
74714da9d7 Output the raw values, not names. 2015-11-02 18:03:49 -05:00
Rob Rix
c89aa9c16f Red and green, bold. 2015-11-02 18:03:02 -05:00
Rob Rix
a22491ceda Console attributes. 2015-11-02 18:02:37 -05:00
Rob Rix
75703e1561 Should we format? 2015-11-02 17:41:56 -05:00
Rob Rix
e4ff0e4a89 Is it a dumb TTY? 2015-11-02 17:39:47 -05:00
Rob Rix
1934d65b99 Are we talking to a TTY? 2015-11-02 17:39:42 -05:00
Rob Rix
a78564506b Format the terms. 2015-11-02 17:30:41 -05:00
Rob Rix
8c2e1f6f50 Sort keyed children using the ordering. 2015-11-02 17:29:43 -05:00
Rob Rix
a740dcceee Add a partial ordering on keyed children. 2015-11-02 17:29:35 -05:00
Rob Rix
84e111c1c1 Stringify keyed terms. 2015-11-02 17:28:21 -05:00
Rob Rix
02c31d7be4 Stringify fixed terms. 2015-11-02 17:26:38 -05:00
Rob Rix
1242534be6 Stringify indexed terms. 2015-11-02 17:26:28 -05:00
Rob Rix
700e2a84a1 Return ranges out when computing term strings. 2015-11-02 17:26:23 -05:00