Browse Source

restored @ for nodepaths/stringnames

Juan Linietsky 10 years ago
parent
commit
daeac73c54
1 changed files with 5 additions and 2 deletions
  1. 5 2
      modules/gdscript/gd_tokenizer.cpp

+ 5 - 2
modules/gdscript/gd_tokenizer.cpp

@@ -538,9 +538,12 @@ void GDTokenizerText::_advance() {
 				is_node_path=true;
 				is_node_path=true;
 				
 				
 			case '\'':
 			case '\'':
-				string_mode=STRING_SINGLE_QUOTE;
 			case '"': {
 			case '"': {
-
+	
+				if (GETCHAR(0)=='\'')
+					string_mode=STRING_SINGLE_QUOTE;
+																	
+																	
 				int i=1;
 				int i=1;
 				if (string_mode==STRING_DOUBLE_QUOTE && GETCHAR(i)=='"' && GETCHAR(i+1)=='"') {
 				if (string_mode==STRING_DOUBLE_QUOTE && GETCHAR(i)=='"' && GETCHAR(i+1)=='"') {
 					i+=2;
 					i+=2;