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

14445 Commits

Author SHA1 Message Date
Rob Rix
38387be114 Don’t include the language key when there is no language. 2017-08-02 17:28:09 -04:00
Rob Rix
2d5a1746ba Merge branch 'master' into delimited-control 2017-08-02 17:23:26 -04:00
Rob Rix
29597fa165 Log the blob fields. 2017-08-02 17:21:45 -04:00
Rob Rix
066465e4d1 Syntax.Error always has an Assignment.Error. 2017-08-02 17:20:55 -04:00
Rob Rix
37704d15f1 Let handleError pick up parse errors. 2017-08-02 17:13:48 -04:00
Rob Rix
beb64af235 Handle errors in JSON. 2017-08-02 16:26:43 -04:00
Rob Rix
c4ca401b5d Handle errors in Ruby expressions. 2017-08-02 16:26:10 -04:00
Rob Rix
f47447a509 Handle assignment errors in Markdown. 2017-08-02 16:26:02 -04:00
Rob Rix
773bf87130 Use the shared combinators in the language assignments. 2017-08-02 16:19:40 -04:00
Rob Rix
c05ff0dd59 🔥 unnecessary Eq instances. 2017-08-02 16:16:35 -04:00
Rob Rix
696219509a Define parseError in Data.Syntax. 2017-08-02 16:15:34 -04:00
Rob Rix
a94eaeffaa Define handleError in Data.Syntax. 2017-08-02 16:15:28 -04:00
Rob Rix
ece4e2de3a Define emptyTerm in Data.Syntax. 2017-08-02 16:15:09 -04:00
Rob Rix
d6f6b9d09c Define makeTerm in Data.Syntax. 2017-08-02 16:14:52 -04:00
Rob Rix
83c6797fa9 Extract a handleError combinator. 2017-08-02 15:59:47 -04:00
Rob Rix
306c4ee42e Remove the redundant type parameter from Assignment. 2017-08-02 15:58:45 -04:00
Rob Rix
b6e064e187 Note that we should log assignment errors. 2017-08-02 15:50:22 -04:00
Rob Rix
69b66fcf21 Separate warnings for parsing & assignment errors in the tree. 2017-08-02 15:49:56 -04:00
Rob Rix
7d07624f4e Add an error handler to the Python expression rule. 2017-08-02 15:42:13 -04:00
Rob Rix
c2e2aa9b7c Log the details of assignment errors in the tree. 2017-08-02 15:35:06 -04:00
Rob Rix
6821e463d0 Add optional assignment errors to Syntax.Error. 2017-08-02 15:31:12 -04:00
Rob Rix
bc0df93593 Derive Foldable, Functor, & Traversable instances for Error. 2017-08-02 15:30:53 -04:00
Rob Rix
af6a3c8b75 Correct an obsolete comment. 2017-08-02 15:18:03 -04:00
Rob Rix
c8bedceabe Rename the type parameter for the parent context. 2017-08-02 15:12:50 -04:00
Rob Rix
f9976fd144 🔥 more redundant parens. 2017-08-02 15:04:02 -04:00
Rob Rix
fe1d3cb4db 🔥 redundant parens. 2017-08-02 15:03:45 -04:00
Rob Rix
2cc13c427d 🔥 Capture & Escape. 2017-08-02 15:00:06 -04:00
Rob Rix
aef66153d9 Remove the capture/escape from the Python grammar. 2017-08-02 14:59:53 -04:00
Rob Rix
9b1bd71523 Change the result type to reflect the rest of iteration. 2017-08-02 14:45:57 -04:00
Rob Rix
f2ae2cadd9 Run the delimited assignment. 2017-08-02 14:16:51 -04:00
Rob Rix
6e2f3a4358 Stub in an attempt at resolving assignment errors in Python expressions. 2017-08-02 14:10:54 -04:00
Rob Rix
ced0c5bfa5 Define smart constructors for capture & escape. 2017-08-02 14:05:34 -04:00
Rob Rix
7738dd991c Correct the type of the continuation. 2017-08-02 14:05:04 -04:00
Timothy Clem
2564a48dd1 Merge pull request #1273 from github/print-source
Autodetect print source
2017-08-02 11:01:28 -07:00
Rob Rix
99f80fee90 Add an Escape constructor to AssignmentF. 2017-08-02 13:59:17 -04:00
Rob Rix
633f8b2c8e Add a Capture constructor to AssignmentF. 2017-08-02 13:57:29 -04:00
Rob Rix
cc21edd3bb Add a final result type parameter to Assignment. 2017-08-02 13:51:22 -04:00
Timothy Clem
1a5ffa9bcd Merge branch 'master' into print-source 2017-08-02 10:44:31 -07:00
Rob Rix
ae41d562ae Merge pull request #1275 from github/fix-assignment-error-traces
Fix assignment error traces
2017-08-02 12:29:53 -04:00
Rob Rix
c82bf8f033 Test that error call stacks point at the failing assignments. 2017-08-02 12:21:56 -04:00
Rob Rix
941dbe4d8a Define a function to retrieve the callstack from errors. 2017-08-02 12:19:17 -04:00
Rob Rix
19850efea1 Add callstacks to the spec rules. 2017-08-02 12:11:14 -04:00
Rob Rix
a017b27781 Factor out the construction of the error. 2017-08-02 12:07:47 -04:00
Rob Rix
2093e85a76 Produce the callstacks from the assignment constructors. 2017-08-02 11:58:20 -04:00
Rick Winfrey
9f791d877b Shim for handling comments when they are siblings to decorators 2017-08-01 18:20:30 -07:00
Rick Winfrey
9937b5371d Restrict decorated definition final expressions (for better errors) 2017-08-01 18:19:56 -07:00
Rick Winfrey
462bccb66e Assign comments in concatenated strings as empty string 2017-08-01 18:19:18 -07:00
Rick Winfrey
ef907b81d7 Many comment is too greedy (and not necessary here) 2017-08-01 17:21:56 -07:00
Rick Winfrey
51d3298282 Elide comments from boolean operator expressions 2017-08-01 17:07:31 -07:00
Rick Winfrey
a2bb8479a3 Elide comments from comprehensions 2017-08-01 17:02:50 -07:00