summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-18 14:56:55 +0200
committerGitHub <noreply@github.com>2022-07-18 14:56:55 +0200
commitaace87e0d0ee56a2e383156429f0248de3ebebf0 (patch)
tree2451b339abf6e98c368805b4862858b89202711b
parent12be0a5c2d916e866cc7fa251580e5016798d510 (diff)
parent585eee2a48e7e6a1b687f916bd51f9fe775ac9cd (diff)
Merge pull request #63123 from zerc/fix_doc_class_description
-rw-r--r--modules/gdscript/gdscript_parser.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index 6c5d416cf1..01a672c330 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -3422,7 +3422,16 @@ void GDScriptParser::get_class_doc_comment(int p_line, String &p_brief, String &
p_tutorials.append(Pair<String, String>(title, link));
break;
case DONE:
- return;
+ break;
+ }
+ }
+ if (current_class->members.size() > 0) {
+ const ClassNode::Member &m = current_class->members[0];
+ int first_member_line = m.get_line();
+ if (first_member_line == line) {
+ p_brief = "";
+ p_desc = "";
+ p_tutorials.clear();
}
}
}