summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlex Hirsch <w4rh4wk@bluephoenix.at>2021-03-19 01:24:18 +0100
committerAlex Hirsch <w4rh4wk@bluephoenix.at>2021-03-19 01:24:18 +0100
commitd7ac5ba1c6adcbbb4a4dd5336af33edb1ab1444f (patch)
tree48c469cd55ba7dc9eb89d3f891b01fcee0821fa2 /modules
parent47cf9985ebf2799d9718fa1a2ca96f2f70c6d212 (diff)
Fix missing quote in multiline GDScript string
fix #47117
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_tokenizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_tokenizer.cpp b/modules/gdscript/gdscript_tokenizer.cpp
index 319778daab..e432dfc891 100644
--- a/modules/gdscript/gdscript_tokenizer.cpp
+++ b/modules/gdscript/gdscript_tokenizer.cpp
@@ -898,6 +898,9 @@ GDScriptTokenizer::Token GDScriptTokenizer::string() {
_advance();
_advance();
break;
+ } else {
+ // Not a multiline string termination, add consumed quote.
+ result += quote_char;
}
} else {
// Ended single-line string.