Store IF depth relative to each fstack context

This disallows starting/ending an IF inside an
INCLUDEd file or a macro expansion
This commit is contained in:
Rangi
2021-01-08 16:28:51 -05:00
committed by Eldred Habert
parent 62bea23c49
commit cab9cb06a3
12 changed files with 64 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
if 1
if 0
println "A"
elif 1
println "B"
else
println "C"
endc
else
println "D"
endc
INCLUDE "unterminated-if-include.inc"
println "done"