mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-11 16:52:14 -04:00
parser: Tweak parsing during error conditions
When an explicit parsing error is encountered and a CompileError raised, apply the changes to the context state. This way, the rule that catches the exception (e.g. Statement or Until) knows where the error occurred. Also, changed "Expected" errors to be reported at the end of the previous non-whitespace token.
This commit is contained in:
parent
69e05bba34
commit
d3c31447c9
6 changed files with 18 additions and 11 deletions
|
@ -1,2 +1 @@
|
|||
4,5,21,Attributes are not permitted at the top level of a menu
|
||||
4,16,10,Unexpected tokens
|
||||
4,5,21,Attributes are not permitted at the top level of a menu
|
Loading…
Add table
Add a link
Reference in a new issue