Allow absent of semicolon before '}' token

This commit is contained in:
Ilmir Usmanov 2014-10-10 19:05:15 +04:00
parent 19d0690586
commit 5c6dbd1466

View File

@ -3076,7 +3076,12 @@ insert_semicolon (void)
lexer_save_token (TOK ());
return;
}
if (!token_is (TOK_SEMICOLON))
if (token_is (TOK_CLOSE_BRACE))
{
lexer_save_token (TOK ());
return;
}
else if (!token_is (TOK_SEMICOLON))
{
EMIT_ERROR ("Expected either ';' or newline token");
}