1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00

Merge pull request #7028 from bojidar-bg/gdscript-multiline-comment-fixup

Make GDScript parser ignore floating strings in class definition
This commit is contained in:
Rémi Verschelde
2016-11-06 12:07:02 +01:00
committed by GitHub

View File

@@ -3375,7 +3375,16 @@ void GDParser::_parse_class(ClassNode *p_class) {
} 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: {