From 4d38529284120562abec62425b21c9b90b56faa7 Mon Sep 17 00:00:00 2001 From: MistMage Date: Thu, 20 Apr 2023 12:08:23 +0200 Subject: Fix for mixed tabs and spaces in gdscript (cherry picked from commit fecbc12d17add3fd3e3ac624bfefa7fbc0b44a73) --- modules/gdscript/gdscript_tokenizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_tokenizer.cpp b/modules/gdscript/gdscript_tokenizer.cpp index d586380c41..a45a73a8d5 100644 --- a/modules/gdscript/gdscript_tokenizer.cpp +++ b/modules/gdscript/gdscript_tokenizer.cpp @@ -1099,7 +1099,7 @@ void GDScriptTokenizer::check_indent() { _advance(); } - if (mixed) { + if (mixed && !(line_continuation || multiline_mode)) { Token error = make_error("Mixed use of tabs and spaces for indentation."); error.start_line = line; error.start_column = 1; -- cgit v1.2.3