1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 09:27:59 +02:00

Supporting unquoted string literals

This commit is contained in:
Brian Fiete 2020-04-13 06:42:49 -07:00
parent 293f4f51a2
commit 9f7040154b

View file

@ -398,10 +398,15 @@ namespace IDE
if (argView.IsEmpty)
continue;
if (argView.StartsWith("\""))
else if ((argView.StartsWith("\"")) || (argView.StartsWith("@\"")))
{
var str = scope:: String();
if (argView.UnQuoteString(str) case .Err)
if (argView.StartsWith("@"))
{
str.Append(argView, 2, argView.Length - 3);
}
else if (argView.UnQuoteString(str) case .Err)
Fail("Failed to unquote string");
if (str.Contains('$'))