You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Add quotes to .tscn keys, solves #4366
(cherry picked from commit 6872139300)
This commit is contained in:
committed by
Rémi Verschelde
parent
1bfaea0d76
commit
fb255a69b6
@@ -1747,7 +1747,20 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r
|
||||
}
|
||||
|
||||
if (c>32) {
|
||||
if (c!='=') {
|
||||
if (c=='"') { //quoted
|
||||
p_stream->saved='"';
|
||||
Token tk;
|
||||
Error err = get_token(p_stream,tk,line,r_err_str);
|
||||
if (err)
|
||||
return err;
|
||||
if (tk.type!=TK_STRING) {
|
||||
r_err_str="Error reading quoted string";
|
||||
return err;
|
||||
}
|
||||
|
||||
what=tk.value;
|
||||
|
||||
} else if (c!='=') {
|
||||
what+=String::chr(c);
|
||||
} else {
|
||||
r_assign=what;
|
||||
|
||||
Reference in New Issue
Block a user