Merge pull request #53261 from Razoric480/lsp_crash_vim_ale

This commit is contained in:
Rémi Verschelde 2021-09-30 17:59:01 +02:00 committed by GitHub
commit 23f21ac45e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
} }