Open justinbangerter opened 1 month ago
It looks like Expression
doesn't support triple quoted strings, but it doesn't report a parse error.
var e := Expression.new()
print(error_string(e.parse('"""test"""'))) # OK
print(var_to_str(e.execute())) # ""
print(error_string(e.parse('"a""test"""'))) # OK
print(var_to_str(e.execute())) # "a"
Tested versions
System information
Godot v4.3.stable unknown - Artix Linux
Issue description
In the editor, if you compare a double quoted string to a triple double quoted string, they are equivalent.
If you use the Expression class to compare them, they are not equivalent.
I'm guessing it shouldn't matter whether it's a double, single, triple double or triple single quoted string. They should all be the same if the contents mean the same thing.
Steps to reproduce
Prints:
Should print:
For any combination of quote types.
Minimal reproduction project (MRP)
godot-quote-bug.zip