Skip to content

Commit

Permalink
Merge pull request #53261 from Razoric480/lsp_crash_vim_ale
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Sep 30, 2021
2 parents 7c9e06f + 679ce6f commit 23f21ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/gdscript/language_server/gdscript_extend_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,11 @@ String ExtendGDScriptParser::parse_documentation(int p_line, bool p_docs_down) {
doc_lines.push_front(line_comment);
}
} else {
String next_line = lines[MAX(0, i + step)].strip_edges(true, false);
if (next_line.begins_with("#")) {
continue;
if (i > 0 && i < lines.size() - 1) {
String next_line = lines[i + step].strip_edges(true, false);
if (next_line.begins_with("#")) {
continue;
}
}
break;
}
Expand Down

0 comments on commit 23f21ac

Please sign in to comment.