Merge pull request #30352 from bojidar-bg/28727-enum-value-check
Fix parsing of enums allowing for juxtaposed identifiers
This commit is contained in:
commit
ba211bd58c
1 changed files with 3 additions and 0 deletions
|
@ -5077,6 +5077,9 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||
|
||||
if (tokenizer->get_token() == GDScriptTokenizer::TK_COMMA) {
|
||||
tokenizer->advance();
|
||||
} else if (tokenizer->is_token_literal(0, true)) {
|
||||
_set_error("Unexpected identifier");
|
||||
return;
|
||||
}
|
||||
|
||||
if (enum_name != "") {
|
||||
|
|
Loading…
Reference in a new issue