We would never not start on an if, hence said variable would always be true
This commit is contained in:
parent
2873a6ab4e
commit
6edae88d76
|
@ -135,7 +135,7 @@ public final class Parser
|
|||
|
||||
hasIf = true;
|
||||
}
|
||||
else if (getSymbolType(getCurrentToken()) == SymbolType.ELSE && hasIf)
|
||||
else if (getSymbolType(getCurrentToken()) == SymbolType.ELSE)
|
||||
{
|
||||
/* Pop off the `else` */
|
||||
nextToken();
|
||||
|
|
Loading…
Reference in New Issue