diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-07-10 13:57:51 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-10 13:57:51 -0300 |
commit | e468bf25442648537abd9d31c6973bfc70ffc7ae (patch) | |
tree | d47f9a071b69255fb1076774dc2a11077d0b91a6 | |
parent | d279d060e18fba43c83c77b0f91dcf2f6bfb3fd2 (diff) | |
parent | 8113ba8befc7d2ad42a58ec7a01709ad26cecf54 (diff) |
Merge pull request #5628 from vnen/pass-semicolon
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 |