1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 09:31:16 +02:00

Fix lexer to support $' in multiline strings.

This commit is contained in:
Guillaume Maudoux 2017-05-01 01:05:41 +02:00
parent 2f21d522c2
commit a474425425
3 changed files with 12 additions and 3 deletions

View file

@ -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;
}