mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #31041 from 2shady4u/master
Mark class_name line as safe in editor
This commit is contained in:
commit
be3b2f3ff9
1 changed files with 1 additions and 0 deletions
|
|
@ -3487,6 +3487,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
||||||
} break;
|
} break;
|
||||||
case GDScriptTokenizer::TK_PR_CLASS_NAME: {
|
case GDScriptTokenizer::TK_PR_CLASS_NAME: {
|
||||||
|
|
||||||
|
_mark_line_as_safe(tokenizer->get_token_line());
|
||||||
if (p_class->owner) {
|
if (p_class->owner) {
|
||||||
_set_error("'class_name' is only valid for the main class namespace.");
|
_set_error("'class_name' is only valid for the main class namespace.");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue