mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
GDScript: Fix continuation lines in GDScriptTokenizerBuffer
This commit is contained in:
parent
6c57928063
commit
02253b6b91
5 changed files with 35 additions and 11 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue