mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Handle EOFs in string literals correctly
We can't return a STR token without setting a valid StringToken, otherwise the parser will crash. Fixes #6562.
This commit is contained in:
parent
d8398d33c9
commit
27ebb97d0a
2 changed files with 4 additions and 1 deletions
3
tests/lang/parse-fail-eof-in-string.nix
Normal file
3
tests/lang/parse-fail-eof-in-string.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
# https://github.com/NixOS/nix/issues/6562
|
||||
# Note that this file must not end with a newline.
|
||||
a 1"$
|
Loading…
Add table
Add a link
Reference in a new issue