Allow semicolon after 'pass' keyword
This commit is contained in:
parent
6377969000
commit
8113ba8bef
@ -1536,6 +1536,10 @@ void GDParser::_parse_block(BlockNode *p_block,bool p_static) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
tokenizer->advance();
|
tokenizer->advance();
|
||||||
|
if(tokenizer->get_token()==GDTokenizer::TK_SEMICOLON) {
|
||||||
|
// Ignore semicolon after 'pass'
|
||||||
|
tokenizer->advance();
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
case GDTokenizer::TK_PR_VAR: {
|
case GDTokenizer::TK_PR_VAR: {
|
||||||
//variale declaration and (eventual) initialization
|
//variale declaration and (eventual) initialization
|
||||||
|
Loading…
Reference in New Issue
Block a user