about summary refs log tree commit diff
path: root/src/libexpr/lexer.l
diff options
context:
space:
mode:
authorGuillaume Maudoux <layus.on@gmail.com>2017-04-30T23·05+0200
committerGuillaume Maudoux <layus.on@gmail.com>2017-04-30T23·15+0200
commita4744254250e170f1b858e46a8b1c7904a030a2b (patch)
tree13bf297167013f5d22d6f069fb989f55576d248c /src/libexpr/lexer.l
parent2f21d522c28b1e902bd7f0b5b9e7523975102d81 (diff)
Fix lexer to support `$'` in multiline strings.
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r--src/libexpr/lexer.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index 5b1ff0350cd1..d4fae2d7da10 100644
--- a/src/libexpr/lexer.l
+++ b/src/libexpr/lexer.l
@@ -160,7 +160,8 @@ or          { return OR_KW; }
                    yylval->e = new ExprIndStr(yytext);
                    return IND_STR;
                  }
-<IND_STRING>\'\'\$ {
+<IND_STRING>\'\'\$ |
+<IND_STRING>\$   {
                    yylval->e = new ExprIndStr("$");
                    return IND_STR;
                  }