mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23: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
|
@ -1455,10 +1455,11 @@ GDScriptTokenizer::Token GDScriptTokenizerText::scan() {
|
|||
if (_peek() != '\n') {
|
||||
return make_error("Expected new line after \"\\\".");
|
||||
}
|
||||
continuation_lines.push_back(line);
|
||||
_advance();
|
||||
newline(false);
|
||||
line_continuation = true;
|
||||
_skip_whitespace(); // Skip whitespace/comment lines after `\`. See GH-89403.
|
||||
continuation_lines.push_back(line);
|
||||
return scan(); // Recurse to get next token.
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue