Add more tests of lexer's skipToLeadingKeyword behavior (#1971)

The character after the ending keyword gets blue-painted.
This commit is contained in:
Rangi
2026-05-09 15:56:17 -04:00
committed by GitHub
parent c50a849757
commit 358e8fe636
7 changed files with 88 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
; This covers some edge cases of `skipToLeadingKeyword`
SECTION "test", ROM0
MACRO mac
if 1
DEF x = \1_WIDTH
DEF y = \1_HEIGHT
elif 0
DEF x = \1_HEIGHT
DEF y = \1_WIDTH
else
fail "nope"
endc
db \1_WIDTH, \1_HEIGHT, x, y
ENDM
DEF NAME_WIDTH EQU 10
DEF NAME_HEIGHT EQU 9
mac NAME