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

3814 Commits

Author SHA1 Message Date
Rob Rix
1197182f35 Define toMarkup over Renderable indexed terms. 2015-12-22 10:52:36 -05:00
Rob Rix
a267cbdd7a Add a function to get the markup & separator for a given child term. 2015-12-22 10:52:22 -05:00
Rob Rix
b4ae80239a Classify the markup outside of the case expression. 2015-12-22 10:41:23 -05:00
Rob Rix
8d0db8ed06 Define a ToMarkup instance over Renderable leaf terms. 2015-12-22 10:28:57 -05:00
Rob Rix
a04f57303c Reduce RenderableSplitDiff to Renderable. 2015-12-22 10:24:37 -05:00
Rob Rix
6703efceb6 Stub in a RenderableSplitDiff type. 2015-12-22 10:20:36 -05:00
Rob Rix
c70eb44f90 Use the global contextLines function. 2015-12-22 10:09:26 -05:00
Rob Rix
37860544ac Generalize contextLines to return [Line a]. 2015-12-22 10:09:06 -05:00
Rob Rix
c7a7a7987e splitDiffByLines & splitAnnotatedByLines produce rows of split diffs. 2015-12-22 10:02:17 -05:00
Rob Rix
fbe3b8dbeb Define openTerm & openDiff in terms of an openRange function. 2015-12-22 09:58:07 -05:00
Rob Rix
37dcb3adea Define an openDiff function over SplitDiff. 2015-12-22 09:56:11 -05:00
Rob Rix
b1c5e3e305 Represent SplitDiff patches totally. 2015-12-22 09:54:40 -05:00
Rob Rix
3368857e2b Represent SplitDiff patches using Maybe. 2015-12-22 09:52:55 -05:00
Rob Rix
ffbd9b5b51 Add a type synonym for a split diff. 2015-12-22 09:37:41 -05:00
Rob Rix
b4cd2c14c4 Row is a Functor. 2015-12-21 23:42:57 -05:00
Rob Rix
eb12d72c36 Line is a Functor. 2015-12-21 23:42:54 -05:00
Rob Rix
597fe099bc Pass an additional open predicate to adjoinRowsBy. 2015-12-21 23:09:14 -05:00
Rob Rix
c7e5690da4 Define splitDiffByLines over Replace patches. 2015-12-21 23:06:27 -05:00
Rob Rix
c471a5e779 Correct the source used in the Delete case. 2015-12-21 23:06:18 -05:00
Rob Rix
c2a754bfa0 Define splitDiffByLines over Delete patches. 2015-12-21 22:59:34 -05:00
Rob Rix
cea5193999 Define splitDiffByLines over Insert patches. 2015-12-21 22:58:12 -05:00
Rob Rix
cf13cb6488 Define splitDiffByLines by pattern matching. 2015-12-21 22:48:59 -05:00
Rob Rix
cff017ccdd Define splitAnnotatedByLines over Keyed diffs. 2015-12-21 22:45:21 -05:00
Rob Rix
e78f9cdbcf Define splitAnnotatedByLines over Fixed diffs. 2015-12-21 22:43:49 -05:00
Rob Rix
cdc01b4995 Define splitAnnotatedByLines over Indexed diffs. 2015-12-21 22:43:19 -05:00
Rob Rix
97ec8a2e94 Compute the rows to the end of the range. 2015-12-21 22:42:58 -05:00
Rob Rix
7414c09c18 Compute the rows for child diffs. 2015-12-21 22:42:27 -05:00
Rob Rix
08c9b84253 Stub in splitDiffByLines over Free values. 2015-12-21 22:42:08 -05:00
Rob Rix
6c877fd042 contextRows uses the constructor it’s passed. 2015-12-21 22:41:19 -05:00
Rob Rix
9dba0887c8 Remove the local contextLines binding from splitAnnotatedByLines. 2015-12-21 22:37:38 -05:00
Rob Rix
ac01a7939c Use the global contextLines definition in splitTermByLines. 2015-12-21 22:34:47 -05:00
Rob Rix
f43bbe415b Add a global contextLines definition. 2015-12-21 22:34:20 -05:00
Rob Rix
b9ed84b7b6 Pass categories to contextLines explicitly. 2015-12-21 22:34:08 -05:00
Rob Rix
5f7b33db85 Add some range-handling bindings. 2015-12-21 22:27:19 -05:00
Rob Rix
27c66b5588 Add an adjoin binding. 2015-12-21 22:27:10 -05:00
Rob Rix
aa42b88df5 adjoinRowsBy takes two different adjoining functions. 2015-12-21 22:26:43 -05:00
Rob Rix
2d383b57c8 Abbreviate sumRows. 2015-12-21 22:26:26 -05:00
Rob Rix
a78ae5a8de Correct the indentation of Line’s Monoid instance. 2015-12-21 21:00:53 -05:00
Rob Rix
739e999233 Extract a contextRows binding. 2015-12-21 20:48:55 -05:00
Rob Rix
45cf368356 Rename adjoinTermLines → adjoinChildLines. 2015-12-21 20:46:03 -05:00
Rob Rix
09034a8fda We never need to adjoin leaf lines. 2015-12-21 20:39:51 -05:00
Rob Rix
2c3ff54dc6 Assertive assertions. 2015-12-21 20:23:56 -05:00
Rob Rix
a69366cf4b Always drop the initial range. 2015-12-21 20:21:55 -05:00
Rob Rix
d99be907d6 Fix the inverted sense of openTerm. 2015-12-21 20:08:47 -05:00
Rob Rix
1f6440e7a1 Test that openTerm returns Just for open terms. 2015-12-21 20:08:05 -05:00
Rob Rix
41e03beb85 Tweak the test name’s wording. 2015-12-21 20:07:53 -05:00
Rob Rix
7ee39b2d40 Test that openTerm classifies strings ending with newlines as closed. 2015-12-21 20:06:19 -05:00
Rob Rix
d1abf65cdd Test openLineBy over openTerm. 2015-12-21 20:04:05 -05:00
Rob Rix
60edd3b19a Omit the categories in the splitTermByLines test. 2015-12-21 20:02:17 -05:00
Rob Rix
b45e10eb92 Port the termToLines test to splitTermByLines. 2015-12-21 19:54:40 -05:00