You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix for Expression class: inner string can be single quoted
This commit is contained in:
@@ -896,6 +896,7 @@ Error Expression::_get_token(Token &r_token) {
|
|||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
case '\'':
|
||||||
case '"': {
|
case '"': {
|
||||||
String str;
|
String str;
|
||||||
while (true) {
|
while (true) {
|
||||||
@@ -905,7 +906,8 @@ Error Expression::_get_token(Token &r_token) {
|
|||||||
_set_error("Unterminated String");
|
_set_error("Unterminated String");
|
||||||
r_token.type = TK_ERROR;
|
r_token.type = TK_ERROR;
|
||||||
return ERR_PARSE_ERROR;
|
return ERR_PARSE_ERROR;
|
||||||
} else if (ch == '"') {
|
} else if (ch == cchar) {
|
||||||
|
// cchar contain a corresponding quote symbol
|
||||||
break;
|
break;
|
||||||
} else if (ch == '\\') {
|
} else if (ch == '\\') {
|
||||||
//escaped characters...
|
//escaped characters...
|
||||||
|
|||||||
Reference in New Issue
Block a user