Merge pull request #36767 from ThakeeNathees/class-pass-fix

fix: Classes can't have pass
This commit is contained in:
Rémi Verschelde 2020-03-10 13:08:27 +01:00 committed by GitHub
commit 57ab10ccf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5227,6 +5227,10 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
} }
} break; } break;
case GDScriptTokenizer::TK_CF_PASS: {
tokenizer->advance();
} break;
default: { default: {
_set_error(String() + "Unexpected token: " + tokenizer->get_token_name(tokenizer->get_token()) + ":" + tokenizer->get_token_identifier()); _set_error(String() + "Unexpected token: " + tokenizer->get_token_name(tokenizer->get_token()) + ":" + tokenizer->get_token_identifier());