summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorMistMage <doomside@gmail.com>2023-04-20 12:08:23 +0200
committerYuri Sizov <yuris@humnom.net>2023-04-26 14:29:27 +0200
commit4d38529284120562abec62425b21c9b90b56faa7 (patch)
treee71c47342c7741fd437356a1a10bc9b6a41d6e64 /modules/gdscript
parentc893968b33cddd3762cd94647753a28031a40c2a (diff)
Fix for mixed tabs and spaces in gdscript
(cherry picked from commit fecbc12d17add3fd3e3ac624bfefa7fbc0b44a73)
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_tokenizer.cpp2
1 files changed, 1 insertions, 1 deletions
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;