1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 07:25:44 +03:00
Commit Graph

232 Commits

Author SHA1 Message Date
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
Rob Rix
3c3bbc3cb9 Copy out term leaf ranges. 2015-11-02 17:24:22 -05:00
Rob Rix
975cfb427c Stub in stringification of terms. 2015-11-02 17:22:39 -05:00
Rob Rix
43100a0432 Sort keyed elements by fiat 2015-11-02 17:15:39 -05:00
Rob Rix
2ca27681aa Pass both strings to Patch stringification. 2015-11-02 17:15:27 -05:00
Rob Rix
523d7a441e Use the context-printing function for indexed syntax. 2015-11-02 16:15:34 -05:00
Rob Rix
d015f972ae Use the new context printing function for fixed syntax. 2015-11-02 16:15:13 -05:00
Rob Rix
7ac4c9ee03 Add a private function to splat out context. 2015-11-02 16:14:03 -05:00
Rob Rix
b858c164d8 Term printing is private. 2015-11-02 16:11:55 -05:00
Rob Rix
1027f6b67f Use accurate ranges where possible. 2015-11-02 16:07:57 -05:00
Rob Rix
144f6ba2c2 Ranges can be nil. 2015-11-02 16:07:34 -05:00
Rob Rix
44dbf62d7c Print and benchmark the diff. 2015-11-02 16:03:09 -05:00
Rob Rix
4fe901bbd4 Remove the switch statement. 2015-11-02 16:03:03 -05:00
Rob Rix
6f2176ca57 Compute the unified diff as a catamorphism. 2015-11-02 16:02:58 -05:00
Rob Rix
9959c231aa Stub in a function to compute the range of a patch. 2015-11-02 16:02:23 -05:00
Rob Rix
3d5b0115b2 Extract Patch stringification into a separate function. 2015-11-02 14:21:34 -05:00
Rob Rix
a7dec6be3b Use the Diff typealias. 2015-11-02 14:19:10 -05:00
Rob Rix
b1f1e29c13 Add a typealias for diffs. 2015-11-02 14:18:30 -05:00
Rob Rix
389636ffbc Stub in printing of patches. 2015-11-02 14:14:19 -05:00
Rob Rix
c14a46b96f unified takes before/after strings. 2015-11-02 14:08:20 -05:00
Rob Rix
683f6557ac Stub in a function which pretty-prints unified diffs. 2015-11-02 14:04:48 -05:00
Rob Rix
e4310be948 Only compute the JSON &c. for split diffs. 2015-11-02 13:20:42 -05:00
Rob Rix
ec87b3b17f Remove the rest property. 2015-11-02 13:07:33 -05:00
Rob Rix
dc4b9188f1 Return the first output we find. 2015-11-02 13:07:24 -05:00
Rob Rix
202bc2b31b We’ll always have a pair of sources. 2015-11-02 13:06:23 -05:00
Rob Rix
b9f739844f Arguments are expected to contain pairs of sources. 2015-11-02 13:04:48 -05:00