aboutsummaryrefslogtreecommitdiff
path: root/lib/qparser/qsp_expression.mly
diff options
context:
space:
mode:
Diffstat (limited to 'lib/qparser/qsp_expression.mly')
-rw-r--r--lib/qparser/qsp_expression.mly4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/qparser/qsp_expression.mly b/lib/qparser/qsp_expression.mly
index 58da39e..b470a88 100644
--- a/lib/qparser/qsp_expression.mly
+++ b/lib/qparser/qsp_expression.mly
@@ -34,9 +34,7 @@
op = binary_operator
expr2 = expression
{ Analyzer.Expression.boperator $loc op expr1 expr2 }
- | TEXT_MARKER
- v = LITERAL
- TEXT_MARKER
+ | v = delimited(TEXT_MARKER, LITERAL, TEXT_MARKER)
{ Analyzer.Expression.literal $loc v }
| i = INTEGER { Analyzer.Expression.integer $loc i }
| v = variable { Analyzer.Expression.ident v }