diff options
author | shaderbeast <jd16581556@gmail.com> | 2019-08-02 20:07:54 +0200 |
---|---|---|
committer | shaderbeast <jd16581556@gmail.com> | 2019-08-02 20:07:54 +0200 |
commit | 1e6a52b215c5cbc186deba76bcf7972f694713b2 (patch) | |
tree | 0cfbe129cc166f98b413f737a85f1271a7673a7c | |
parent | 410cb13abdf5699bdcd6e73728c947e1e75b4cad (diff) |
Mark class_name line as safe in editor
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 80da606967..ffb2e8f8e7 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -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; |