From dd060261e35fcb8a57f03b01dbe84ab772a2a199 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Sat, 28 Oct 2023 16:47:23 +0200 Subject: Set up a context for parsing the literal strings --- lib/qparser/qsp_expression.mly | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/qparser/qsp_expression.mly') 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 } -- cgit v1.2.3