diff options
author | Guillaume Maudoux <layus.on@gmail.com> | 2017-04-30T23·05+0200 |
---|---|---|
committer | Guillaume Maudoux <layus.on@gmail.com> | 2017-04-30T23·15+0200 |
commit | a4744254250e170f1b858e46a8b1c7904a030a2b (patch) | |
tree | 13bf297167013f5d22d6f069fb989f55576d248c /src/libexpr/lexer.l | |
parent | 2f21d522c28b1e902bd7f0b5b9e7523975102d81 (diff) |
Fix lexer to support `$'` in multiline strings.
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r-- | src/libexpr/lexer.l | 3 |
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; } |