Fixed a bug where specifications were being misinterpreted inside IFs during parsing
I find it surprising this bug had been in there so long. It was interpreting "INT i" as an expression in an IF, then couldn't resolve i, rather than backing out and correctly parsing the whole line, "INT i:" as a specification.
This commit is contained in:
parent
8f943c9ac1
commit
80dac0492b
|
@ -1741,8 +1741,7 @@ ifChoice
|
|||
guardedChoice :: OccParser (A.Structured A.Choice)
|
||||
guardedChoice
|
||||
= do m <- md
|
||||
b <- expression
|
||||
eol
|
||||
b <- tryVX expression eol
|
||||
indent
|
||||
p <- process
|
||||
outdent
|
||||
|
|
Loading…
Reference in New Issue
Block a user