1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-22 18:29:36 +01:00

Fix lexer to support $' in multiline strings.

(cherry picked from commit a474425425)
This commit is contained in:
Guillaume Maudoux 2017-05-01 01:05:41 +02:00 committed by Eelco Dolstra
parent 26f7e8305b
commit a10bd3355a
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 12 additions and 3 deletions

View file

@ -153,7 +153,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;
}