You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Fix LSP crash parsing scripts of temp size 0
This commit is contained in:
@@ -409,10 +409,12 @@ String ExtendGDScriptParser::parse_documentation(int p_line, bool p_docs_down) {
|
|||||||
doc_lines.push_front(line_comment);
|
doc_lines.push_front(line_comment);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
String next_line = lines[MAX(0, i + step)].strip_edges(true, false);
|
if (i > 0 && i < lines.size() - 1) {
|
||||||
|
String next_line = lines[i + step].strip_edges(true, false);
|
||||||
if (next_line.begins_with("#")) {
|
if (next_line.begins_with("#")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user