diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-23 18:50:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 18:50:12 +0200 |
commit | 2f228cdda48d82cdc613b613f06609fa84d0e090 (patch) | |
tree | b1a2b4f3f4350d96082cb7e29594d5636f908e49 /modules | |
parent | 75ed4b159a729c273d310bb1d99c41a44d7c8fb0 (diff) | |
parent | c1fcb22677b519eb22f8117fecf1a84b11c84bc2 (diff) |
Merge pull request #32278 from Calinou/lsp-fix-double-assignment
Fix `line` being assigned to twice in the GDScript language server
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/language_server/gdscript_extend_parser.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/gdscript/language_server/gdscript_extend_parser.cpp b/modules/gdscript/language_server/gdscript_extend_parser.cpp index 9e8727ec58..6db8cb2c88 100644 --- a/modules/gdscript/language_server/gdscript_extend_parser.cpp +++ b/modules/gdscript/language_server/gdscript_extend_parser.cpp @@ -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; } |