Merge pull request #32278 from Calinou/lsp-fix-double-assignment

Fix `line` being assigned to twice in the GDScript language server
This commit is contained in:
Rémi Verschelde 2019-09-23 18:50:12 +02:00 committed by GitHub
commit 2f228cdda4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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