mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-14 22:01:43 +00:00
Add more tests of lexer's skipToLeadingKeyword behavior (#1971)
The character after the ending keyword gets blue-painted.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
DEF x = 0
|
||||
DEF s EQUS "\nprintln \"lol\", x\ndef x += 1"
|
||||
|
||||
if 0
|
||||
println "no"
|
||||
endc{#s}
|
||||
|
||||
if 1
|
||||
println "yes"
|
||||
else{#s}
|
||||
println "nope"
|
||||
endc{#s}
|
||||
|
||||
rept 0
|
||||
println "no way"
|
||||
endr{#s}
|
||||
|
||||
println "x = ", x
|
||||
|
||||
MACRO m
|
||||
if 0
|
||||
println "no how"
|
||||
endc\1
|
||||
ENDM
|
||||
m \nprintln "haha"
|
||||
Reference in New Issue
Block a user