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

2094 Commits

Author SHA1 Message Date
Rob Rix
c6ad7e3df2 Remove the doubt-json scheme. 2015-11-02 18:11:17 -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
ae5b50bcdf CofreeType.cata’s transformation block receives the annotation. 2015-11-02 17:22:24 -05:00
Rob Rix
ed9ca09909 Duplicate cata for CofreeType. 2015-11-02 17:20:42 -05:00
Rob Rix
4f03d5355b 🔥 Free.para. 2015-11-02 17:18:56 -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
joshvera
b19e995ae2 fix some commas 2015-11-02 17:03:59 -05:00
joshvera
306badf972 Compare both elements if neither are invisible 2015-11-02 16:27:14 -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
joshvera
c3a2e50baf beginningOfNextElement should be a non-invisible element 2015-11-02 15:56:12 -05:00
joshvera
7331e387ff insert separators before invisible elements 2015-11-02 15:39:04 -05:00
Rob Rix
3fbfeccce9 Free.para’s transformation function receives the annotation. 2015-11-02 15:12:27 -05:00
Rob Rix
aa815e8010 Free.cata’s transformation function receives the annotation. 2015-11-02 15:09:53 -05:00
Rob Rix
5aef08e4c5 Paramorphism over Free. 2015-11-02 14:33:02 -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
bbce3bc4e3 Add the --unified flag (temporarily at least). 2015-11-02 13:21:10 -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