You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix for Expression class: inner string can be single quoted
(cherry picked from commit ec164b2301)
This commit is contained in:
committed by
Rémi Verschelde
parent
b330766c30
commit
a822d1f133
@@ -1004,6 +1004,7 @@ Error Expression::_get_token(Token &r_token) {
|
||||
|
||||
return OK;
|
||||
};
|
||||
case '\'':
|
||||
case '"': {
|
||||
|
||||
String str;
|
||||
@@ -1015,7 +1016,8 @@ Error Expression::_get_token(Token &r_token) {
|
||||
_set_error("Unterminated String");
|
||||
r_token.type = TK_ERROR;
|
||||
return ERR_PARSE_ERROR;
|
||||
} else if (ch == '"') {
|
||||
} else if (ch == cchar) {
|
||||
// cchar contain a corresponding quote symbol
|
||||
break;
|
||||
} else if (ch == '\\') {
|
||||
//escaped characters...
|
||||
|
||||
Reference in New Issue
Block a user