diff options
author | Juan Linietsky <red@kyoko> | 2015-02-19 18:12:45 -0300 |
---|---|---|
committer | Juan Linietsky <red@kyoko> | 2015-02-19 18:12:45 -0300 |
commit | daeac73c543d4abfa49399a3abb03da42d77684d (patch) | |
tree | 7494c0ea2b5e88c3534dd27e81656fa0d7391fb6 /modules | |
parent | 3fdf3d8eabf3ca8c756de52a4bb6aa302c1f454f (diff) |
restored @ for nodepaths/stringnames
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gd_tokenizer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp index 6f968f2080..1979577a17 100644 --- a/modules/gdscript/gd_tokenizer.cpp +++ b/modules/gdscript/gd_tokenizer.cpp @@ -538,9 +538,12 @@ 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; |