diff options
author | Chimrod <> | 2023-10-28 16:47:23 +0200 |
---|---|---|
committer | Chimrod <> | 2023-11-02 11:06:12 +0100 |
commit | dd060261e35fcb8a57f03b01dbe84ab772a2a199 (patch) | |
tree | 8faf51bfe647ab844c976dfcbba4ad4d533f07b4 /lib/qparser/qsp_expression.mly | |
parent | 872916a5661e31b655471ec0f9bf81a5474bc1ba (diff) |
Set up a context for parsing the literal strings
Diffstat (limited to 'lib/qparser/qsp_expression.mly')
-rw-r--r-- | lib/qparser/qsp_expression.mly | 4 |
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 } |