Make GDScript parser ignore floating strings in class definition
Fixes #1320
This commit is contained in:
parent
3958171a7a
commit
074bcb2a7b
@ -3376,6 +3376,15 @@ void GDParser::_parse_class(ClassNode *p_class) {
|
|||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case GDTokenizer::TK_CONSTANT: {
|
||||||
|
if(tokenizer->get_token_constant().get_type() == Variant::STRING) {
|
||||||
|
tokenizer->advance();
|
||||||
|
// Ignore
|
||||||
|
} else {
|
||||||
|
_set_error(String()+"Unexpected constant of type: "+Variant::get_type_name(tokenizer->get_token_constant().get_type()));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} break;
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user