diff options
author | George Marques <george@gmarqu.es> | 2016-07-10 12:20:53 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2016-07-10 12:20:53 -0300 |
commit | 8113ba8befc7d2ad42a58ec7a01709ad26cecf54 (patch) | |
tree | 99592e2973d600096558794543bebdba6383a891 | |
parent | 637796900080cfcf407e1045f10e6e9040c8d33e (diff) |
Allow semicolon after 'pass' keyword
-rw-r--r-- | modules/gdscript/gd_parser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp index e87bd99e4f..6a7cd5eb8c 100644 --- a/modules/gdscript/gd_parser.cpp +++ b/modules/gdscript/gd_parser.cpp @@ -1536,6 +1536,10 @@ void GDParser::_parse_block(BlockNode *p_block,bool p_static) { return; } tokenizer->advance(); + if(tokenizer->get_token()==GDTokenizer::TK_SEMICOLON) { + // Ignore semicolon after 'pass' + tokenizer->advance(); + } } break; case GDTokenizer::TK_PR_VAR: { //variale declaration and (eventual) initialization |