Fix nested if statements that don't have following whitespace

When trying to skip over nested if statements, if there was no whitespace
after an "if", then that "if" would not be recognized. That's a problem since
"if(" and "if{" are also valid ways to start an if statement. This change
will make it so that they are recognized correctly.
This commit is contained in:
dbrotz
2019-08-29 12:37:59 -07:00
parent 3a1b47129e
commit 8f287eeef9
4 changed files with 26 additions and 2 deletions

18
test/asm/nested-if.asm Normal file
View File

@@ -0,0 +1,18 @@
if 0
if(1)
endc
if 1
endc
if{x}
endc
endc
if 1
else
if(1)
endc
if 1
endc
if{x}
endc
endc