diff options
Diffstat (limited to 'lib/qparser')
-rw-r--r-- | lib/qparser/expression_parser.messages | 8 | ||||
-rw-r--r-- | lib/qparser/parser.mly | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/qparser/expression_parser.messages b/lib/qparser/expression_parser.messages index 5345ebf..707597b 100644 --- a/lib/qparser/expression_parser.messages +++ b/lib/qparser/expression_parser.messages @@ -95,3 +95,11 @@ main: LOCATION_START EOL IDENT GT EQUAL STAR main: LOCATION_START EOL IDENT LT EQUAL STAR Missing boolean after operator + +main: LOCATION_START EOL IF IDENT COLUMN EOL END TEXT_MARKER + + Unexpected instruction after `IF` `END` block. + +main: LOCATION_START EOL ACT IDENT COLUMN EOL END TEXT_MARKER + + Unexpected instruction after `ACT` `END` block. diff --git a/lib/qparser/parser.mly b/lib/qparser/parser.mly index 6fc9b8f..861d8b9 100644 --- a/lib/qparser/parser.mly +++ b/lib/qparser/parser.mly @@ -78,7 +78,7 @@ line_statement: COLUMN EOL+ s = line_statement* b = BODY - END TOKEN? + END line_sep { let expression = Analyzer.Expression.v e in |