mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 09:38:01 +02:00
Supporting unquoted string literals
This commit is contained in:
parent
293f4f51a2
commit
9f7040154b
1 changed files with 7 additions and 2 deletions
|
@ -398,10 +398,15 @@ namespace IDE
|
||||||
if (argView.IsEmpty)
|
if (argView.IsEmpty)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (argView.StartsWith("\""))
|
else if ((argView.StartsWith("\"")) || (argView.StartsWith("@\"")))
|
||||||
{
|
{
|
||||||
var str = scope:: String();
|
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");
|
Fail("Failed to unquote string");
|
||||||
|
|
||||||
if (str.Contains('$'))
|
if (str.Contains('$'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue