1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

Merge pull request #11120 from tweag/early-string-cutoff

parser: Remove empty multiline string parts earlier
This commit is contained in:
Robert Hensing 2024-07-20 19:10:50 +02:00 committed by GitHub
commit 584f8cb065
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1 @@
(let string = "str"; in [ (/some/path) ((/some/path)) ((/some/path)) ((/some/path + "\n end")) (string) ((string)) ((string)) ((string + "\n end")) ("") ("") ("end") ])

View file

@ -0,0 +1,31 @@
let
string = "str";
in [
/some/path
''${/some/path}''
''
${/some/path}''
''${/some/path}
end''
string
''${string}''
''
${string}''
''${string}
end''
''''
''
''
''
end''
]