1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
Commit Graph

13856 Commits

Author SHA1 Message Date
Rob Rix
b74cc92213 🔥 ParseArguments. 2017-07-19 14:04:33 -04:00
Rob Rix
30d4c6a6e8 🔥 ProgramMode. 2017-07-19 14:04:17 -04:00
Rob Rix
5e13616358 🔥 Arguments. 2017-07-19 14:03:51 -04:00
Rob Rix
1a3708a462 Format the export list. 2017-07-19 14:02:22 -04:00
Rob Rix
9d4737048d Correct the specs. 2017-07-19 14:01:56 -04:00
Rob Rix
e03ba6b0e4 Define diffing/parsing CLI parsers in terms of SomeRenderer and the action to be performed. 2017-07-19 14:00:30 -04:00
Rob Rix
5ea5b7fb05 Export SomeRenderer. 2017-07-19 13:59:20 -04:00
Rob Rix
0722f09626 Define a SomeRenderer type to abstract type indices away. 2017-07-19 13:54:48 -04:00
Rick Winfrey
6fc07e18ce Add language field to errors test 2017-07-19 10:44:38 -07:00
Rick Winfrey
607392ded1 Add language to ToC spec tests 2017-07-19 10:34:48 -07:00
Rick Winfrey
9d1f4f19ca Update ErrorSummary to use MaybeLanguage 2017-07-18 17:18:09 -07:00
Rick Winfrey
c92157b988 🔥 Undetected constructor
- Representing as Maybe Language is helpful for blobs that are null.
2017-07-18 17:17:33 -07:00
Rick Winfrey
c7eb0dc482 🔥 language from Summaries; 🔥 language from JSONSummary
- We only care about the language when there's a parse error, so language is added to ErrorSummary only
2017-07-18 16:49:39 -07:00
Rick Winfrey
565445039e Add language to Summaries 2017-07-18 15:59:55 -07:00
Rick Winfrey
9d2119ffc8 Add language field to JSONSummary 2017-07-18 15:58:37 -07:00
Rick Winfrey
7fdc32b77c Add Undetected Language constructor 2017-07-18 15:52:18 -07:00
Rob Rix
e0013c3a23 Merge pull request #1226 from github/constructor-name
Syntax constructor labels
2017-07-18 15:30:50 -04:00
Timothy Clem
74d7bc9d36 Merge branch 'master' into constructor-name 2017-07-18 11:34:54 -07:00
Timothy Clem
28a3313d12 Rename constructorLabelWithSource => constructorNameAndConstantFields 2017-07-18 11:33:28 -07:00
Timothy Clem
31a2e6a08d Return a ConstructorLabel instead of a ByteString 2017-07-18 11:32:59 -07:00
Timothy Clem
b0e98bd6b5 Reduce language pragmas needed 2017-07-18 11:23:37 -07:00
Timothy Clem
49100a7479 Use Generic1 to get conName for syntax constructor labels 2017-07-18 10:03:32 -07:00
Rob Rix
22f70ecc31 Merge pull request #1224 from github/result-refactor
Better reporting of assignment errors
2017-07-18 10:25:42 -04:00
Timothy Clem
64d2175f58 Fix up assignment specs 2017-07-17 14:39:08 -07:00
Timothy Clem
a6f375859f Update Parser to use Either instead of Result 2017-07-17 14:39:08 -07:00
Timothy Clem
039e019551 Track errors in AssignmentState, Result => Either 2017-07-17 14:39:03 -07:00
Rob Rix
5e125c80bc Merge pull request #1223 from github/markdown-inline-html
Assign HTMLInline in markdown
2017-07-17 15:17:09 -04:00
Rob Rix
62d4522a60 Merge branch 'master' into markdown-inline-html 2017-07-17 15:11:54 -04:00
Rob Rix
7fd8e67941 Merge pull request #1222 from github/preserve-errors-in-repetition-assignment
Preserve errors in repetition assignment
2017-07-17 15:10:43 -04:00
Timothy Clem
902aa213f5 Assign HTMLInline in markdown 2017-07-17 10:50:02 -07:00
Rob Rix
9370addba1 Print the source in white. 2017-07-17 12:58:41 -04:00
Rob Rix
1c1349ef82 Apply the ShowS in putStrErr. 2017-07-17 12:56:40 -04:00
Rob Rix
1b117ef8b0 Add a newline after the callstack. 2017-07-17 12:55:39 -04:00
Rob Rix
dcb1794cfa Print the callstack in white. 2017-07-17 12:55:13 -04:00
Rob Rix
d997779bdf Traverse the Maybe directly. 2017-07-17 12:52:17 -04:00
Rob Rix
36801584e0 Prefer the later error. 2017-07-17 12:51:42 -04:00
Rob Rix
a07726fcf3 Preserve errors through repetitions. 2017-07-17 12:22:27 -04:00
Rob Rix
8354b701ae Alternating results preserves errors. 2017-07-17 12:20:02 -04:00
Rob Rix
3a7c4a238f Produce errors at the current node’s location instead of the end of the previous node.
This gives us better localization of errors, pointing at the start of the (guaranteed extant) current node instead of the state’s current location (which can be an arbitrary distance earlier in the source).
2017-07-17 12:19:15 -04:00
Josh Vera
55cfa89ddf Merge pull request #1216 from github/parse-errors-as-maximal-symbol
Parse errors as maximal symbol
2017-07-14 15:10:18 -04:00
Rob Rix
b66cfcc52c Select the lesser of the node symbol & the parse error symbol.
This effectively clamps the ERROR symbol (65535) to the maximal constructor.
2017-07-14 14:43:36 -04:00
Rob Rix
e2a629121e Bump haskell-tree-sitter for ParseError as the maximal constructor. 2017-07-14 14:42:26 -04:00
Rob Rix
342711c532 Merge pull request #1207 from github/except-as-clauses
Final polish on Python assignment
2017-07-14 11:24:38 -04:00
Rick Winfrey
921be5bfca Assign Let statements in Except clauses 2017-07-13 15:52:03 -07:00
Rick Winfrey
af8b0ffd2f Add Catch record fields 2017-07-13 15:49:33 -07:00
Rick Winfrey
9c9f43d4e9 Assign Decorators with no ArgumentList 2017-07-13 15:22:01 -07:00
Rick Winfrey
08560875b6 uncurry and swap 2017-07-13 15:15:36 -07:00
Rick Winfrey
c0e47ffd8a 🔥 old comment 2017-07-13 15:15:17 -07:00
Rick Winfrey
1efabaed9a Merge pull request #1204 from github/python-slice-expressions
Assign slice expressions
2017-07-13 10:26:40 -07:00
Rick Winfrey
8a0e952a11 Merge branch 'master' into python-slice-expressions 2017-07-13 10:03:53 -07:00