aboutsummaryrefslogtreecommitdiff
path: root/lib/qparser/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'lib/qparser/parser.mly')
-rw-r--r--lib/qparser/parser.mly5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/qparser/parser.mly b/lib/qparser/parser.mly
index 5c83fc2..d075e3e 100644
--- a/lib/qparser/parser.mly
+++ b/lib/qparser/parser.mly
@@ -49,9 +49,6 @@ start_location:
line_statement:
| COMMENT EOL+ { Analyzer.Instruction.comment $loc }
| COLUMN i=IDENT EOL* { Analyzer.Instruction.location $loc i }
- | s = terminated(instruction, line_sep)
- | s = terminated(inline_action, line_sep)
- { s }
| a = action_bloc(IF, elif_else_body)
{ let {loc; expression; body; pos; clauses } = a in
let elifs, else_ = match clauses with
@@ -68,6 +65,8 @@ line_statement:
{ let {loc; expression; body; _} = a in
Analyzer.Instruction.act loc ~label:expression body
}
+ | b = inlined_block(line_sep)
+ { b }
(** Represent an instruction which can either be on a single line,
or created in a block until an END