Fix 'function' declaration parsing

This commit is contained in:
Ilmir Usmanov
2014-10-16 21:12:03 +04:00
parent 99d21743b0
commit bd7fd40a32
2 changed files with 30 additions and 0 deletions
+5
View File
@@ -3297,6 +3297,11 @@ parse_statement (void)
parse_variable_declaration_list (NULL);
goto cleanup;
}
if (is_keyword (KW_FUNCTION))
{
parse_function_declaration ();
goto cleanup;
}
if (token_is (TOK_SEMICOLON))
{
goto cleanup;