diff options
| author | Juan Linietsky | 2015-03-03 14:39:13 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-03-03 14:39:13 -0300 |
| commit | 4d2198110b4af7f203eeef95697255569e49bce7 (patch) | |
| tree | 452e4964f127643bf52610718fd956d8b55ed6ba /modules/gdscript/gd_tokenizer.cpp | |
| parent | 91faf8e21810c8995e4f6e3b6ba47a6482ab877e (diff) | |
| download | godot-4d2198110b4af7f203eeef95697255569e49bce7.tar.gz godot-4d2198110b4af7f203eeef95697255569e49bce7.tar.zst godot-4d2198110b4af7f203eeef95697255569e49bce7.zip | |
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
| -rw-r--r-- | modules/gdscript/gd_tokenizer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp index 6f968f208..71dbf81fb 100644 --- a/modules/gdscript/gd_tokenizer.cpp +++ b/modules/gdscript/gd_tokenizer.cpp @@ -538,9 +538,11 @@ void GDTokenizerText::_advance() { is_node_path=true; case '\'': - string_mode=STRING_SINGLE_QUOTE; case '"': { + if (GETCHAR(0)=='\'') + string_mode=STRING_SINGLE_QUOTE; + int i=1; if (string_mode==STRING_DOUBLE_QUOTE && GETCHAR(i)=='"' && GETCHAR(i+1)=='"') { i+=2; |
