diff options
author | Guillaume Maudoux <layus.on@gmail.com> | 2017-05-01 01:05:41 +0200 |
---|---|---|
committer | Guillaume Maudoux <layus.on@gmail.com> | 2017-05-01 01:15:40 +0200 |
commit | a4744254250e170f1b858e46a8b1c7904a030a2b (patch) | |
tree | 13bf297167013f5d22d6f069fb989f55576d248c /src | |
parent | 2f21d522c28b1e902bd7f0b5b9e7523975102d81 (diff) |
Fix lexer to support `$'` in multiline strings.
Diffstat (limited to 'src')
-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 5b1ff0350..d4fae2d7d 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; } |