1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fix parsing of enums allowing for juxtaposed identifiers

Fixes #28727
This commit is contained in:
Bojidar Marinov
2019-07-05 21:40:40 +03:00
parent 4cb0887660
commit c43e050145

View File

@@ -5084,6 +5084,9 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
if (tokenizer->get_token() == GDScriptTokenizer::TK_COMMA) { if (tokenizer->get_token() == GDScriptTokenizer::TK_COMMA) {
tokenizer->advance(); tokenizer->advance();
} else if (tokenizer->is_token_literal(0, true)) {
_set_error("Unexpected identifier");
return;
} }
if (enum_name != "") { if (enum_name != "") {