Skip to content

Commit

Permalink
Merge pull request #32278 from Calinou/lsp-fix-double-assignment
Browse files Browse the repository at this point in the history
Fix `line` being assigned to twice in the GDScript language server
  • Loading branch information
akien-mga authored Sep 23, 2019
2 parents 75ed4b1 + c1fcb22 commit 2f228cd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/gdscript/language_server/gdscript_extend_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,13 @@ String ExtendGDScriptParser::marked_documentation(const String &p_bbcode) {
if (block_start != -1) {
code_block_indent = block_start;
in_code_block = true;
line = "'''gdscript";
line = "\n";
line = "'''gdscript\n";
} else if (in_code_block) {
line = "\t" + line.substr(code_block_indent, line.length());
}

if (in_code_block && line.find("[/codeblock]") != -1) {
line = "'''\n";
line = "\n";
line = "'''\n\n";
in_code_block = false;
}

Expand Down

0 comments on commit 2f228cd

Please sign in to comment.