Merge pull request #31041 from 2shady4u/master

Mark class_name line as safe in editor
This commit is contained in:
Rémi Verschelde 2019-08-05 08:05:49 +02:00 committed by GitHub
commit be3b2f3ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3487,6 +3487,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
} break;
case GDScriptTokenizer::TK_PR_CLASS_NAME: {
_mark_line_as_safe(tokenizer->get_token_line());
if (p_class->owner) {
_set_error("'class_name' is only valid for the main class namespace.");
return;