mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
made parser accept EOF after "pass", fixes #1488
This commit is contained in:
parent
eeb0fcfb41
commit
f54ad9e086
@ -1462,7 +1462,7 @@ void GDParser::_parse_block(BlockNode *p_block,bool p_static) {
|
||||
|
||||
} break;
|
||||
case GDTokenizer::TK_CF_PASS: {
|
||||
if (tokenizer->get_token(1)!=GDTokenizer::TK_SEMICOLON && tokenizer->get_token(1)!=GDTokenizer::TK_NEWLINE ) {
|
||||
if (tokenizer->get_token(1)!=GDTokenizer::TK_SEMICOLON && tokenizer->get_token(1)!=GDTokenizer::TK_NEWLINE && tokenizer->get_token(1)!=GDTokenizer::TK_EOF) {
|
||||
|
||||
_set_error("Expected ';' or <NewLine>.");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user