summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-04-26 20:28:41 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-04-26 20:28:41 -0300
commitf54ad9e086b96feb29794b183a40248d17e60411 (patch)
tree0629f9a1a429e7539526613c763d4b498d2fc23b
parenteeb0fcfb4121d98fb3195bafb8c1ef7f7fd0ff9d (diff)
made parser accept EOF after "pass", fixes #1488
-rw-r--r--modules/gdscript/gd_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp
index 916fbc6182..6242400663 100644
--- a/modules/gdscript/gd_parser.cpp
+++ b/modules/gdscript/gd_parser.cpp
@@ -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;