1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Makes LSP report new() as _init; fixes docstrings

(cherry picked from commit ae3aec1dbc)

Fix LSP crash parsing scripts of temp size 0

(cherry picked from commit 679ce6fd0b)
This commit is contained in:
Francois Belair
2021-09-26 13:15:24 -04:00
committed by Rémi Verschelde
parent bb1e434d7c
commit 15025a4c93
3 changed files with 12 additions and 4 deletions

View File

@@ -413,6 +413,12 @@ String ExtendGDScriptParser::parse_documentation(int p_line, bool p_docs_down) {
doc_lines.push_front(line_comment);
}
} else {
if (i > 0 && i < lines.size() - 1) {
String next_line = lines[i + step].strip_edges(true, false);
if (next_line.begins_with("#")) {
continue;
}
}
break;
}
}