1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
Commit Graph

12440 Commits

Author SHA1 Message Date
Rob Rix
76c8d0e3e5 Print the caret in green. 2017-05-19 16:13:18 -04:00
Rob Rix
c4df6adec3 Take an optional path. 2017-05-19 16:12:29 -04:00
Rob Rix
29792357ba Print the source. We don’t have any, so just guess really. 2017-05-19 16:11:12 -04:00
Rob Rix
5e88098782 Bold the source line/column. 2017-05-19 16:11:02 -04:00
Rob Rix
fa3407f045 withSGRCode takes a ShowS. 2017-05-19 16:08:20 -04:00
Rob Rix
aca843ed3f Add some combinators for working with SGR codes. 2017-05-19 16:07:30 -04:00
Rob Rix
8ab1c25f30 Output the error message in red. 2017-05-19 16:03:44 -04:00
Rick Winfrey
9519e557be Reorder error message to add callstack after the error syntax node 2017-05-19 16:01:12 -04:00
Timothy Clem
1a98dba03b Merge pull request #1126 from github/diff-parse-stdin
Take blob content on stdin
2017-05-19 09:26:52 -07:00
Timothy Clem
b5ad87a207 Merge branch 'master' into diff-parse-stdin 2017-05-19 09:17:45 -07:00
Timothy Clem
5d3d320eff Individual lookup of before/after keys 2017-05-19 07:50:13 -07:00
Rob Rix
8e54da32bf Merge pull request #1128 from github/syntax-algebra-module
Syntax algebra module
2017-05-19 09:19:50 -04:00
Rob Rix
2052909d7e Remove the ' from Identifier. 2017-05-19 09:17:07 -04:00
Rob Rix
3ba57c56f1 Move the syntax algebras into Data.Syntax.Algebra. 2017-05-19 09:16:26 -04:00
Rob Rix
6d2e115da7 Stub in a module for syntax algebras. 2017-05-19 09:13:03 -04:00
Rob Rix
40b0c2189d Merge pull request #1118 from github/unaligned-json-diff-rendering
Unaligned JSON diff rendering
2017-05-18 21:37:12 -04:00
Timothy Clem
a518a4ad19 Use These to enforce patch style valid input of before/after 2017-05-18 16:45:37 -07:00
Timothy Clem
2a828703b0 Always with the imports 2017-05-18 14:09:58 -07:00
Timothy Clem
7121f827e3 Handle various language inputs and test them 2017-05-18 14:05:29 -07:00
Timothy Clem
2fd81ce5a4 Clean up readFromHandle 2017-05-18 14:05:29 -07:00
Timothy Clem
c0e8c7fe84 TIL about Alternative 2017-05-18 14:05:29 -07:00
Rob Rix
a4be9b0a99 Merge branch 'master' into unaligned-json-diff-rendering 2017-05-18 16:32:21 -04:00
Rob Rix
88744a81a8 Merge branch 'master' into diff-parse-stdin 2017-05-18 08:53:23 -04:00
Rob Rix
7b45a7e71e Merge pull request #1125 from github/map-error-productions-onto-nothing
Handle parse errors safely
2017-05-18 08:53:03 -04:00
Rob Rix
b142cb92a2 Bump haskell-tree-sitter to master. 2017-05-18 08:27:08 -04:00
Timothy Clem
1a97d42acf Only require path on the blob level 2017-05-17 14:03:08 -07:00
Timothy Clem
08deafb142 Formatting of test file 2017-05-17 13:40:01 -07:00
Timothy Clem
48f7ce7793 Docs 2017-05-17 13:38:26 -07:00
Timothy Clem
674e7893eb Merge remote-tracking branch 'origin/master' into diff-stdin 2017-05-17 13:34:23 -07:00
Timothy Clem
4af9b02737 Expand API to support parsing 2017-05-17 13:34:09 -07:00
Timothy Clem
8c7179ddd7 Rename and clean up imports 2017-05-17 12:54:42 -07:00
Timothy Clem
9777937d9d Read any handle and assert in specs 2017-05-17 12:47:45 -07:00
Rob Rix
9c75981833 Construct well-formed nodes. 2017-05-17 15:36:53 -04:00
Rob Rix
2a3f0294ac Export ErrorCause. 2017-05-17 15:36:43 -04:00
Rob Rix
516daa7e4f Correct the spec. 2017-05-17 15:35:15 -04:00
Rob Rix
d0f42f11aa Don’t drop error nodes. 2017-05-17 15:34:26 -04:00
Rob Rix
3b91e39fe3 Rename ErrorNode to ParseError. 2017-05-17 15:29:40 -04:00
Rob Rix
48fcfcaf07 Carry expected symbols for error nodes. 2017-05-17 15:29:00 -04:00
Rob Rix
25cd23a056 Catch error nodes at the end. 2017-05-17 15:27:15 -04:00
Rob Rix
3774bf8f3a Represent error conditions with ErrorCause. 2017-05-17 15:26:29 -04:00
Rob Rix
2d7f91703e Define a Show1 instance for ErrorCause. 2017-05-17 15:23:40 -04:00
Rob Rix
1ff09b9f81 Provide a list of expected symbols at the end of input. 2017-05-17 15:22:53 -04:00
Rob Rix
92f86217b2 Define an ErrorCause datatype. 2017-05-17 15:17:27 -04:00
Rob Rix
588ff85c54 Represent errors for error nodes distinct from end of input. 2017-05-17 15:15:11 -04:00
Rob Rix
107921f62a Short-circuit fail on error productions. 2017-05-17 15:11:33 -04:00
Rob Rix
d3e63cfac7 Node symbols are in Maybe to accommodate errors. 2017-05-17 15:07:27 -04:00
Rob Rix
17f63a6b8a 🔥 a redundant constraint. 2017-05-17 14:58:20 -04:00
Rob Rix
2ef8c5c9fb Define a function to safely construct values of enumerations. 2017-05-17 14:58:09 -04:00
Rob Rix
8ce618ec1f Bump haskell-tree-sitter for Ix instances. 2017-05-17 14:54:23 -04:00
Rob Rix
544fc901ed Bump haskell-tree-sitter for the addition of Bounded instances. 2017-05-17 14:46:19 -04:00