mirror of
https://github.com/NixOS/nix
synced 2025-07-07 22:33:57 +02:00
Fix lexer to support $'
in multiline strings.
This commit is contained in:
parent
2f21d522c2
commit
a474425425
3 changed files with 12 additions and 3 deletions
|
@ -117,4 +117,12 @@ let
|
|||
bar
|
||||
'';
|
||||
|
||||
in s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10 + s11 + s12 + s13 + s14 + s15
|
||||
# Regression test: accept $'.
|
||||
s16 = ''
|
||||
cut -d $'\t' -f 1
|
||||
'';
|
||||
|
||||
# Accept dollars at end of strings
|
||||
s17 = ''ending dollar $'' + ''$'' + "\n";
|
||||
|
||||
in s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10 + s11 + s12 + s13 + s14 + s15 + s16 + s17
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue