Merge pull request #5628 from vnen/pass-semicolon

Allow semicolon after 'pass' keyword
This commit is contained in:
Juan Linietsky 2016-07-10 13:57:51 -03:00 committed by GitHub
commit e468bf2544

View file

@ -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