fix node paths not being quoted

godot-4.2
John Montagu, the 4th Earl of Sandvich 2023-09-26 10:25:55 -07:00
parent b173a02912
commit 166dc3664b
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ public class LiteralExpression : Expression
if (Literal.Type == TokenType.NodePath)
{
var val = Regex.Escape(Literal.Value);
return $"from.call({val})";
return $"from.call(\"{val}\")";
}
else if (Literal.Type == TokenType.String)
{