diff options
| author | Danil Alexeev <danil@alexeev.xyz> | 2024-03-14 12:33:56 +0300 |
|---|---|---|
| committer | Danil Alexeev <danil@alexeev.xyz> | 2024-04-10 08:51:02 +0300 |
| commit | 02253b6b91472e251418bd0545afb2b653b5385c (patch) | |
| tree | b2b4191e82e3af8d0f8852b92f33ad91587d0856 /modules/gdscript/gdscript_tokenizer_buffer.cpp | |
| parent | 6c579280630715ff7da8310d405ef34194847294 (diff) | |
| download | redot-engine-02253b6b91472e251418bd0545afb2b653b5385c.tar.gz | |
GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`
Diffstat (limited to 'modules/gdscript/gdscript_tokenizer_buffer.cpp')
| -rw-r--r-- | modules/gdscript/gdscript_tokenizer_buffer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/gdscript_tokenizer_buffer.cpp b/modules/gdscript/gdscript_tokenizer_buffer.cpp index db523ea941..e53bc5bc41 100644 --- a/modules/gdscript/gdscript_tokenizer_buffer.cpp +++ b/modules/gdscript/gdscript_tokenizer_buffer.cpp @@ -285,9 +285,9 @@ Vector<uint8_t> GDScriptTokenizerBuffer::parse_code_string(const String &p_code, // Remove continuation lines from map. for (int line : tokenizer.get_continuation_lines()) { - if (rev_token_lines.has(line + 1)) { - token_lines.erase(rev_token_lines[line + 1]); - token_columns.erase(rev_token_lines[line + 1]); + if (rev_token_lines.has(line)) { + token_lines.erase(rev_token_lines[line]); + token_columns.erase(rev_token_lines[line]); } } |
