Fix parse error when 'if' ends on a class
This commit is contained in:
parent
95c6f17a21
commit
17a6aaf8d6
@ -1882,9 +1882,9 @@ static void ifStatement(void) {
|
||||
endScope();
|
||||
}
|
||||
} else if (!check(TOKEN_EOF) && !check(TOKEN_EOL)) {
|
||||
krk_ungetToken(parser.current);
|
||||
parser.current = parser.previous;
|
||||
if (blockWidth) {
|
||||
krk_ungetToken(parser.current);
|
||||
parser.current = parser.previous;
|
||||
parser.previous = previous;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user