1
1
mirror of https://github.com/github/semantic.git synced 2024-12-02 02:08:48 +03:00
Commit Graph

1096 Commits

Author SHA1 Message Date
Rob Rix
890512fafb Annotate the type of contextRows. 2015-12-29 11:02:42 -05:00
Rob Rix
36232f46a1 Annotate the type of adjoin. 2015-12-29 11:01:27 -05:00
Rob Rix
f7beee8c79 Annotate the type of wrap. 2015-12-29 11:00:33 -05:00
Rob Rix
5f9299cfe5 Annotate the type of getRange. 2015-12-29 10:57:32 -05:00
Rob Rix
2c95e64293 Annotate the type of adjoinChildRows. 2015-12-29 10:56:49 -05:00
Rob Rix
2429ac1333 Annotate the type of childRows. 2015-12-29 10:56:32 -05:00
Rob Rix
d769936602 Don’t filter out empty ranges.
This seems to be fine.
2015-12-29 10:24:47 -05:00
Rob Rix
19d0d77a0f Source is Traversable. 2015-12-29 10:21:45 -05:00
Rob Rix
d71368ffad Revert "Generalize the leaf type again (via a type family in TermContainer)."
This reverts commit af37677e344e1dd3d6a6f782186a2b0983519652.
2015-12-29 10:14:57 -05:00
Rob Rix
99220ba440 Generalize the leaf type again (via a type family in TermContainer). 2015-12-29 10:07:33 -05:00
Rob Rix
3c74757685 Use Either to filter out unnecessary context nodes. 2015-12-29 09:52:54 -05:00
Rob Rix
ac724f7d6c Use concrete leaf types everywhere. 2015-12-29 09:51:50 -05:00
Rob Rix
cadf559d8b Generalize openTerm to term containers. 2015-12-29 09:51:26 -05:00
Rob Rix
1fa2450c6e String/Term pairs are term containers. 2015-12-29 09:51:00 -05:00
Rob Rix
938468f9b4 Terms are term containers. 2015-12-29 09:50:54 -05:00
Rob Rix
b738163094 Add a TermContainer typeclass.
It’s like a lens, but terrible and ad hoc.
2015-12-29 09:50:47 -05:00
Rob Rix
465b3e5207 Add a MaybeOpen value for Info. 2015-12-28 17:11:52 -05:00
Rob Rix
2a048984e3 Use fromMaybe to unpack in splitAnnotatedByLines. 2015-12-28 17:11:37 -05:00
Rob Rix
8a9f815e4e Add an openEither MaybeOpen function. 2015-12-28 16:22:59 -05:00
Rob Rix
90cd354091 MaybeOpen characterizes adjoinRowsBy. 2015-12-28 16:20:03 -05:00
Rob Rix
79d0330df6 MaybeOpen characterizes adjoinLinesBy/openLineBy. 2015-12-28 16:19:42 -05:00
Rob Rix
c32e2c6d2f Move MaybeOpen to the Line module. 2015-12-28 16:18:41 -05:00
Rob Rix
d5b819a6ab Add a MaybeOpen type characterizing the open… functions. 2015-12-28 16:17:35 -05:00
Rob Rix
87e3fc728e Apply the constructor parameter consistently. 2015-12-28 16:11:32 -05:00
Rob Rix
0d48c8c814 Filter out context branches. 2015-12-28 14:01:19 -05:00
Rob Rix
087052b9cd Wrap Fixed line contents in a Fixed term. 2015-12-28 14:00:21 -05:00
Rob Rix
4a95975ece Wrap Indexed line contents in an Indexed term. 2015-12-28 14:00:03 -05:00
Rob Rix
5556dfb2f7 Add a function to wrap a line’s contents in a branch. 2015-12-28 13:59:45 -05:00
Rob Rix
612fa4dc65 Add a getRange function over terms. 2015-12-28 13:59:27 -05:00
Rob Rix
1394b24a68 Revert "Move getRange to the top level."
This reverts commit 507484d90a3281f5c42157d82317545a90404617.
2015-12-28 13:58:24 -05:00
Rob Rix
9916f9a12c isContextBranch doesn’t take a SplitDiff, just a Term. 2015-12-28 13:57:51 -05:00
Rob Rix
61edafe2d9 Move getRange to the top level. 2015-12-28 13:55:54 -05:00
Rob Rix
38f147c913 Require equatable leaves in terms. 2015-12-28 13:54:18 -05:00
Rob Rix
3c3221068b Add a predicate to recognize context terms. 2015-12-28 13:54:07 -05:00
Rob Rix
d9d7ebbc84 Pattern match on the categories. 2015-12-28 13:52:40 -05:00
Rob Rix
b032e4964e Don’t add context branches. 2015-12-28 13:49:01 -05:00
Rob Rix
aa4cb37eff Add a predicate to test whether a node is a context branch. 2015-12-28 13:48:57 -05:00
Rob Rix
7c419d000e Require leaves to be equatable. 2015-12-28 13:47:57 -05:00
Rob Rix
7dfc163047 Filter out empty ranges. 2015-12-28 13:03:34 -05:00
Rob Rix
989ef074df Add an isEmpty predicate on Range. 2015-12-28 13:03:26 -05:00
Rob Rix
ec1635586d Wrap the contents of Fixed nodes. 2015-12-28 12:52:53 -05:00
Rob Rix
86a2c7faaa Wrap the contents of Indexed nodes. 2015-12-28 12:52:26 -05:00
Rob Rix
0d66d2f891 Add a function to wrap a line’s contents in a branch node. 2015-12-28 12:52:16 -05:00
Rob Rix
9bc616ce4a Add a function computing the range of split diffs. 2015-12-28 12:51:30 -05:00
Rob Rix
7e2e40028f Add a Monoid instance for Range. 2015-12-28 12:35:43 -05:00
Rob Rix
ed0b0b39e9 wrapRowContents takes separate functions for each side. 2015-12-28 12:31:23 -05:00
Rob Rix
8616b797ac Add a wrapRowContents function. 2015-12-28 12:28:44 -05:00
Rob Rix
bbc3f373a6 Add a wrapLineContents function.
It’s sort of like fmap, but not!
2015-12-28 12:27:25 -05:00
Rob Rix
00863006df fmap over contextRows instead of passing it a constructor. 2015-12-28 12:14:51 -05:00
Rob Rix
58709ba050 Apply the constructor symmetrically. 2015-12-28 12:14:00 -05:00
Rob Rix
02cc84d38d contextLines produces [Line Info] 2015-12-28 12:06:22 -05:00
Rob Rix
38f4087d77 Formatting. 2015-12-28 12:03:54 -05:00
Rob Rix
f95ca49ae1 Briefer definition of hunks. 2015-12-28 10:04:47 -05:00
Rob Rix
27e40a4954 Show lines prefixed with '+', '-', or ' '. 2015-12-28 10:02:50 -05:00
Rob Rix
f0b026f07f Revert "Diffs are Church-encoded."
This reverts commit 84e126cb18397fd85e7b12ee0ce2bbde770c4300.
2015-12-24 21:28:42 -05:00
Rob Rix
7695992f70 Diffs are Church-encoded. 2015-12-24 21:11:09 -05:00
Rob Rix
0f31fbceaa Define Hunk over a list of Changes. 2015-12-24 18:52:33 -05:00
Rob Rix
64a618b55b Add a showChange function analogous to showHunk. 2015-12-24 18:50:39 -05:00
Rob Rix
8cc2c072c9 Add a function to compute the next Change. 2015-12-24 18:28:37 -05:00
Rob Rix
fef60e4aca Add a Change type which encapsulates partial hunks. 2015-12-24 18:28:31 -05:00
Rob Rix
b658a311ef Abstract Hunk over arbitrary Rows. 2015-12-24 18:23:04 -05:00
Rob Rix
8dda0cbd39 Show lines with prefixes. 2015-12-24 18:20:28 -05:00
Rob Rix
6c32921b99 Add a type annotation for showHunk. 2015-12-24 18:17:25 -05:00
Rob Rix
b138e2b5b8 Move {row,line,diff}HasChanges to the top level. 2015-12-24 18:14:19 -05:00
Rob Rix
30805882b5 Derive the Show instance for Hunk. 2015-12-24 18:11:38 -05:00
Rob Rix
3fd62682d8 Show hunks in their sources. 2015-12-24 18:11:32 -05:00
Rob Rix
dadae9497d Add a showHunk function to pretty-print a hunk within a pair of sources. 2015-12-24 18:11:19 -05:00
Rob Rix
bfb553b7f1 Add a Monoid instance for Range. 2015-12-24 18:10:29 -05:00
Rob Rix
7c95ee30e2 Find (part of) the next hunk in a list of rows. 2015-12-24 17:58:09 -05:00
Rob Rix
82b054c559 Add a function to take the last n elements of a list. 2015-12-24 17:54:26 -05:00
Rob Rix
33240ced54 Find the hunks in a diff & sources. 2015-12-24 17:42:38 -05:00
Rob Rix
052217ea3b Add a function to find the hunks in a list of rows, recursively. 2015-12-24 17:42:22 -05:00
Rob Rix
b535fac1ea Stub in a function to compute the next Hunk & remaining rows in a list of rows. 2015-12-24 17:42:08 -05:00
Rob Rix
a10cc9f13e Hunks are defined over Rows. 2015-12-24 17:41:45 -05:00
Rob Rix
25b9699981 Remove Line. 2015-12-24 17:15:13 -05:00
Rob Rix
1c1da259a7 Define Hunk using record syntax. 2015-12-24 17:14:47 -05:00
Rob Rix
77b92d98a6 Eta reduction. 2015-12-24 17:02:31 -05:00
Rob Rix
5257089ad4 Patches are constructed over Source Chars. 2015-12-24 16:37:14 -05:00
Rob Rix
0866ef52bd Merge branch 'diff-performance' into patch 2015-12-24 16:33:24 -05:00
Rob Rix
63f08c406c Merge branch 'parse-performance' into diff-performance 2015-12-24 10:57:33 -05:00
Rob Rix
dfc5fbee04 Merge branch 'split-performance' into parse-performance
# Conflicts:
#	src/Range.hs
2015-12-24 10:56:51 -05:00
Rob Rix
9fdd72b8c6 Optimize maybeLast for vector access. 2015-12-24 10:48:58 -05:00
Rob Rix
c786d2d83d Lines are parameterized by Vectors. 2015-12-24 10:41:07 -05:00
Rob Rix
d6faa15321 Implement intercalate over Foldables. 2015-12-24 10:40:56 -05:00
Rob Rix
2644e8f602 Implement intersperse over Foldables. 2015-12-24 10:40:47 -05:00
Rob Rix
162f51016e Use makeLine to construct contextLines. 2015-12-24 10:38:46 -05:00
Rob Rix
d3e8dd867b Add a makeLine function constructing Lines from lists. 2015-12-24 09:53:05 -05:00
Rob Rix
e6e3d9d450 classifyMarkup takes the first category if any. 2015-12-24 09:51:56 -05:00
Rob Rix
e77b3a8bd4 Add maybeFirst over Foldables. 2015-12-24 09:51:47 -05:00
Rob Rix
e1f5986c21 Qualify the import of Source with less chaff. 2015-12-24 09:51:38 -05:00
Rob Rix
6be93fa749 Dollar sign spaceship operator to the rescue. 2015-12-24 01:10:17 -05:00
Rob Rix
671ecc2c11 Rejigger some parentheses to avoid a $. 2015-12-24 01:09:49 -05:00
Rob Rix
56aa250f96 Eta-reductions. 2015-12-24 01:09:40 -05:00
Rob Rix
d17a44221d Don’t re-sum the costs. 2015-12-24 01:08:53 -05:00
Rob Rix
dba213ebfc Remove an unnecessary $. 2015-12-24 01:08:23 -05:00
Rob Rix
093fc26d13 Use Source.null in the guard. 2015-12-24 00:23:36 -05:00
Rob Rix
9343e9d4ae Do all formatting within Sources. 2015-12-24 00:20:47 -05:00
Rob Rix
cfeb9e4ee8 Move actualLines/actualLineRanges into the Source module. 2015-12-24 00:08:17 -05:00
Rob Rix
eb461a3915 Concatenate Sources in actualLines. 2015-12-23 23:41:31 -05:00
Rob Rix
4395e49104 Define Source concatenation. 2015-12-23 23:41:08 -05:00
Rob Rix
69aadf4ec5 Rename makeSourcefromList. 2015-12-23 23:37:51 -05:00
Rob Rix
3ca9064869 O(1) indexing. 2015-12-23 23:29:27 -05:00
Rob Rix
8a2aca45e1 Tacit definition of null. 2015-12-23 23:28:13 -05:00
Rob Rix
ad6e7f2ae7 Tacit definition of slice. 2015-12-23 23:27:07 -05:00
Rob Rix
0bb6462fad Rename unSource to toList. 2015-12-23 23:26:37 -05:00
Rob Rix
e4225faa20 Rename subsourceslice. 2015-12-23 23:25:00 -05:00
Rob Rix
55d3ed38a4 A let expression makes more sense. 2015-12-23 23:23:16 -05:00
Rob Rix
83173a7b96 Fewer parens. 2015-12-23 23:22:29 -05:00
Rob Rix
03526754e9 subsource uses the correct start/length bounds. 2015-12-23 23:21:51 -05:00
Rob Rix
588b1a68ee Avoid most of the conversions into/out of Source. 2015-12-23 23:17:35 -05:00
Rob Rix
a19115b267 Define break over Source. 2015-12-23 23:16:09 -05:00
Rob Rix
b6e05008ec cons over Source. 2015-12-23 23:06:49 -05:00
Rob Rix
f89b05bb41 Define a getVector function for Source. 2015-12-23 23:06:38 -05:00
Rob Rix
ee91b130e4 Add API to destructure a Source. 2015-12-23 23:05:01 -05:00
Rob Rix
08122476e6 Add API to test whether a Source is empty. 2015-12-23 23:04:50 -05:00
Rob Rix
f3d65ea6db Define actualLines by means of a single conversion to String. 2015-12-23 22:55:44 -05:00
Rob Rix
76f11db98e Define Source over Data.Vector. 2015-12-23 22:48:31 -05:00
Rob Rix
e9449fccb8 Move Source & its API to the Source module. 2015-12-23 22:38:20 -05:00
Rob Rix
cc9dee5704 Stub in a Source module. 2015-12-23 22:38:02 -05:00
Rob Rix
75ead61274 Move getTotalRange into the tests.
It’s kind of a lie.
2015-12-23 22:20:35 -05:00
Rob Rix
62143c1acf Add a function to compute the total range of a Source. 2015-12-23 22:17:16 -05:00
Rob Rix
20fab3f0fa Use makeSource to construct the sources. 2015-12-23 21:52:44 -05:00
Rob Rix
c1f606a499 Add a makeSource function. 2015-12-23 21:51:56 -05:00
Rob Rix
b7f6b99fba Source carries an offset field. 2015-12-23 21:50:40 -05:00
Rob Rix
4ef1ddbf1d Define Source as a newtype. 2015-12-23 21:42:51 -05:00
Rob Rix
4d368b0180 substring is a synonym for sublist. 2015-12-23 21:39:50 -05:00
Rob Rix
653acdc30f Add a sublist function. 2015-12-23 21:39:35 -05:00
Rob Rix
002147ac3e Add a type parameter for the elements of Sources. 2015-12-23 21:38:23 -05:00
Rob Rix
6a879d4967 Remove the annotation from sources. 2015-12-23 21:37:53 -05:00
Rob Rix
145720123f Use toString when rendering. 2015-12-23 21:33:59 -05:00
Rob Rix
a2521837ea Stub in API to render a Source to a String. 2015-12-23 21:33:07 -05:00
Rob Rix
6fccea8ce9 Pass Sources around everywhere. 2015-12-23 21:30:12 -05:00
Rob Rix
8158386f98 Use sources, not before/after. 2015-12-23 21:29:58 -05:00
Rob Rix
09a944ecfe Add a function to find the value at an index in a Source. 2015-12-23 21:29:26 -05:00
Rob Rix
ef91c64ad7 Add a function to get a portion of a Source. 2015-12-23 21:29:11 -05:00
Rob Rix
035a4cd26b Redefine Source as a type synonym for String. 2015-12-23 21:28:49 -05:00
Rob Rix
ce8a90ad9b Use a type synonym for the sources. 2015-12-23 20:35:03 -05:00
Rob Rix
5082288b06 Stub in arrays of sources. 2015-12-23 20:33:40 -05:00
Rob Rix
46635ccb60 Merge branch 'profiling-improvements' into split-performance
# Conflicts:
#	src/Range.hs
2015-12-23 19:50:27 -05:00
Rob Rix
3097513207 The Split folds are all strict. 2015-12-23 18:11:42 -05:00
Rob Rix
4d339a84e3 Row is strict. 2015-12-23 18:08:59 -05:00
Rob Rix
0ef7cdf93b Merge branch 'strictness' into patch 2015-12-23 18:06:47 -05:00
Rob Rix
0136305f34 Merge branch 'ffi-ffs' into patch
# Conflicts:
#	src/Range.hs
2015-12-23 18:06:38 -05:00
Rob Rix
6b5339a5c2 Fold strictly. 2015-12-23 18:03:55 -05:00
Rob Rix
745ee35816 Annotated is strict in its annotation and syntax.. 2015-12-23 17:55:19 -05:00
Rob Rix
92cbad56fe Document why strict application. 2015-12-23 17:54:28 -05:00
Rob Rix
319bbecfdb We no longer need to force the evaluation of range. 2015-12-23 17:52:04 -05:00
Rob Rix
094fd90f91 Info is now strict. 2015-12-23 17:51:52 -05:00
Rob Rix
98bde6b555 Eta reduction. 2015-12-23 17:50:29 -05:00
Rob Rix
d30bc17c16 Remove redundant parentheses. 2015-12-23 17:50:26 -05:00
Rob Rix
077c8194b2 Spacing. 2015-12-23 17:49:59 -05:00
Rob Rix
ab7f748663 Use fromMaybe to expand the alternatives. 2015-12-23 17:48:43 -05:00
Rob Rix
fe347b3f07 Just force the evaluation of range now that it’s strict. 2015-12-23 17:41:55 -05:00
Rob Rix
24998db34e Range’s fields are strict. 2015-12-23 17:41:35 -05:00
Rob Rix
a8578ccbf8 Force the evaluation of the start & end of the range. 2015-12-23 17:39:40 -05:00
Rob Rix
eb908e4fa2 Compute the range in-place. 2015-12-23 17:39:13 -05:00
Rob Rix
08c2d72803 Force the evaluation of the range. 2015-12-23 17:38:09 -05:00
Rob Rix
aca7b55784 Capture the range in a temporary. 2015-12-23 17:37:42 -05:00
Rob Rix
76e1f042c8 getChild calls toTerm directly. 2015-12-23 10:47:15 -05:00
Rob Rix
308e561693 Use take to specify a half-open interval. 2015-12-23 10:43:41 -05:00
Rob Rix
a32de11218 Spacing. 2015-12-23 10:34:40 -05:00
Rob Rix
038d0b6ff6 Implement the Storable instance for TSNode in terms of its CStorable instance. 2015-12-23 10:34:08 -05:00
Rob Rix
44ba628c71 Add a default CStorable instance for TSNode. 2015-12-23 10:33:52 -05:00
Rob Rix
ae92b20a7c Derive a Generic instance for TSNode. 2015-12-23 10:33:36 -05:00
Rob Rix
a938d072c0 Remove TSLength. 2015-12-23 09:52:09 -05:00
Rob Rix
f75a0f25f3 Move range into the where clause. 2015-12-23 09:50:54 -05:00
Rob Rix
5b685f7ce3 Remove withNamedChildren. 2015-12-23 09:50:19 -05:00
Rob Rix
8550676c42 Inline withNamedChildren in toTerm. 2015-12-23 09:49:55 -05:00
Rob Rix
988a8d825f TSNode is no longer defined over TSLength, but over CSize values instead. 2015-12-23 09:45:49 -05:00
Rob Rix
8bae7923e2 Merge branch 'split-refactoring' into patch 2015-12-22 19:12:32 -05:00
Rob Rix
eecb291c02 Merge branch 'split-property-tests' into split-refactoring 2015-12-22 19:12:10 -05:00
Rob Rix
4c7393c2d3 Merge branch 'master' into split-property-tests 2015-12-22 19:11:56 -05:00
Rob Rix
e1a84e2ab1 Increase the size of TSNode to match the current definition.
See also
https://github.com/maxbrunsfeld/tree-sitter/blob/master/include/tree_sit
ter/runtime.h#L38-L41
2015-12-22 19:06:51 -05:00
Rob Rix
6049a99ed7 Merge branch 'split-refactoring' into patch 2015-12-22 19:01:50 -05:00
Rob Rix
773f98c13e Remove codeTd. 2015-12-22 18:24:20 -05:00
Rob Rix
3f2af1826a Remove the ToMarkup instance for Line. 2015-12-22 18:23:58 -05:00
Rob Rix
91bf531af9 Mark up empty code cells directly. 2015-12-22 18:23:34 -05:00
Rob Rix
cbd0987010 Mark up the code cell inline too. 2015-12-22 18:22:33 -05:00
Rob Rix
ac867437f0 Handle the hasChanges case inline. 2015-12-22 18:20:20 -05:00
Rob Rix
124ff65c91 Remove the pattern matches on Line. 2015-12-22 18:19:30 -05:00
Rob Rix
759b008000 Revert "Define toMarkup over Bool/Int/Line triples by pattern matching."
This reverts commit 7f5f4ca3e690ccab67ac4d1536d80c415e51b791.
2015-12-22 18:18:19 -05:00
Rob Rix
985afd797b Revert "Remove the old definitions."
This reverts commit bdc9d50a5bf0e05ea6cd04e5603ab85911cc4314.
2015-12-22 18:18:15 -05:00
Rob Rix
1241cbeff9 Revert "Inline the cell class."
This reverts commit 2e484d1dbd3c694165bdcff6a32486256d93041e.
2015-12-22 18:18:10 -05:00
Rob Rix
30c281c185 Inline the cell class. 2015-12-22 18:14:36 -05:00
Rob Rix
fbda7e11c1 Remove the old definitions. 2015-12-22 18:14:01 -05:00
Rob Rix
cfe2cd336e Define toMarkup over Bool/Int/Line triples by pattern matching. 2015-12-22 18:13:43 -05:00
Rob Rix
de1482af2c Remove numberTd. 2015-12-22 18:06:49 -05:00
Rob Rix
6c6139aac9 Don’t depend on numberTd. 2015-12-22 18:06:42 -05:00
Rob Rix
9b87a785b5 No need to unLine. 2015-12-22 17:59:26 -05:00
Rob Rix
cd5abba743 Derive a Foldable instance for Line. 2015-12-22 17:58:11 -05:00
Rob Rix
946b1067b3 Use or to test for changes. 2015-12-22 17:57:16 -05:00
Rob Rix
b25da81f81 Remove toRenderable. 2015-12-22 17:56:28 -05:00
Rob Rix
c83c67cc99 Remove the Int, Line pair instance of ToMarkup. 2015-12-22 17:56:19 -05:00
Rob Rix
02afbd132a Remove the Int, Line, Int, Line instance of ToMarkup. 2015-12-22 17:56:10 -05:00
Rob Rix
44e04ec17f Render numbered lines to markup using the new function. 2015-12-22 17:55:54 -05:00
Rob Rix
e974ea43af Add a function to render numbered lines to markup with indication of changes. 2015-12-22 17:55:30 -05:00
Rob Rix
b89218a944 Add a ToMarkup instance over Bool/Int/Line a triples. 2015-12-22 17:55:03 -05:00
Rob Rix
e9c7c46130 Add a function to test for changes in a diff. 2015-12-22 17:54:01 -05:00
Rob Rix
7e98ee3de5 Add a function to map a line into a Renderable line. 2015-12-22 17:53:47 -05:00
Rob Rix
b165994569 Move adjoinRowsBy into the Row module. 2015-12-22 17:27:56 -05:00
Rob Rix
c92ba49b4d Move adjoinLinesBy into the Line module. 2015-12-22 17:27:09 -05:00
Rob Rix
74fbc6e539 Move openLineBy into the Line module. 2015-12-22 17:26:24 -05:00
Rob Rix
e2cc92bdf7 Move Row into the Row module. 2015-12-22 17:24:58 -05:00
Rob Rix
b256d46f83 Stub in a Row module. 2015-12-22 17:24:08 -05:00
Rob Rix
cdaea42fd2 Move the ToMarkup instances over Line to the Line module. 2015-12-22 17:23:10 -05:00
Rob Rix
4a39f65fdf Move Line to its own file. 2015-12-22 17:21:17 -05:00
Rob Rix
8f469a07c4 Stub in a Line module. 2015-12-22 17:20:08 -05:00
Rob Rix
ce2c759fea Remove classify. 2015-12-22 17:18:27 -05:00
Rob Rix
24d22042d1 classifyMarkup takes categories directly. 2015-12-22 17:18:17 -05:00
Rob Rix
e719626216 Remove HTML. 2015-12-22 17:12:56 -05:00
Rob Rix
6783d410bb Remove openElement. 2015-12-22 17:09:32 -05:00
Rob Rix
0d33052528 Remove the ToMarkup instance for HTML. 2015-12-22 16:44:06 -05:00
Rob Rix
97d868ad26 Remove elementAndBreak. 2015-12-22 16:42:57 -05:00
Rob Rix
1d0aecda80 Remove the zipWithMaybe definition. 2015-12-22 16:42:27 -05:00
Rob Rix
c3a9b4f5d1 Remove the rowFromMaybeRows definition. 2015-12-22 16:42:03 -05:00
Rob Rix
4070c8f271 Remove the textElements definition. 2015-12-22 16:41:52 -05:00
Rob Rix
1f8b9b9ae9 Remove the global contextRows definition. 2015-12-22 16:41:17 -05:00
Rob Rix
39e318317f Remove termToLines. 2015-12-22 16:40:20 -05:00
Rob Rix
6607f0d605 Remove diffToRows & annotatedToRows. 2015-12-22 16:39:43 -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
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
0775f90ce4 Syntax highlight categories. 2015-12-22 13:06:37 -05:00
Rob Rix
fbe899be21 Remove the changed flag from Line. 2015-12-22 12:47:12 -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
Rob Rix
1bed6a7710 Define toMarkup over Renderable fixed terms. 2015-12-22 10:54:54 -05:00
Rob Rix
a0ac63f8b7 Extract the handling of the contents into a binding. 2015-12-22 10:54:31 -05:00
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