From 9f7040154b8e2c18c6d1364d8f547b77c852a4d3 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 13 Apr 2020 06:42:49 -0700 Subject: [PATCH] Supporting unquoted string literals --- IDE/src/ScriptManager.bf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/IDE/src/ScriptManager.bf b/IDE/src/ScriptManager.bf index 30a2d839..56510c6f 100644 --- a/IDE/src/ScriptManager.bf +++ b/IDE/src/ScriptManager.bf @@ -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('$'))