Add test for {interpolation} after two double quotes

This is an edge case of how the lexer changes behavior when
reading string literals versus reading unquoted source code.
Three double quotes would begin a multi-line string literal,
but just two are still ambiguous, so it has to `peek()` to
see whether it's inside a multi-line string literal or
outside an empty regular string.
This commit is contained in:
Rangi42
2025-07-31 03:31:13 -04:00
parent cd4be6aa07
commit a36f2b3b7d
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
def hello = $11
def goodbye = $22
def greeting equs "hello"
println ""{greeting}
def string equs "\"goodbye\""
println ""{goodbye}""