mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
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.
9 lines
135 B
NASM
9 lines
135 B
NASM
def hello = $11
|
|
def goodbye = $22
|
|
|
|
def greeting equs "hello"
|
|
println ""{greeting}
|
|
|
|
def string equs "\"goodbye\""
|
|
println ""{goodbye}""
|