From a07d53b2626c98594299270b010d30abfee82ed1 Mon Sep 17 00:00:00 2001 From: shaderbeast Date: Fri, 2 Aug 2019 20:07:54 +0200 Subject: [PATCH] Mark class_name line as safe in editor (cherry picked from commit 1e6a52b215c5cbc186deba76bcf7972f694713b2) --- modules/gdscript/gdscript_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index fbca71f2980..4ed54eabb11 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3497,6 +3497,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;