Mark class_name line as safe in editor
This commit is contained in:
parent
410cb13abd
commit
1e6a52b215
|
@ -3472,6 +3472,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;
|
||||
|
|
Loading…
Reference in New Issue