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();
|
endScope();
|
||||||
}
|
}
|
||||||
} else if (!check(TOKEN_EOF) && !check(TOKEN_EOL)) {
|
} else if (!check(TOKEN_EOF) && !check(TOKEN_EOL)) {
|
||||||
krk_ungetToken(parser.current);
|
|
||||||
parser.current = parser.previous;
|
|
||||||
if (blockWidth) {
|
if (blockWidth) {
|
||||||
|
krk_ungetToken(parser.current);
|
||||||
|
parser.current = parser.previous;
|
||||||
parser.previous = previous;
|
parser.previous = previous;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user