Преглед на файлове

Supporting unquoted string literals

Brian Fiete преди 5 години
родител
ревизия
9f7040154b
променени са 1 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. 7 2
      IDE/src/ScriptManager.bf

+ 7 - 2
IDE/src/ScriptManager.bf

@@ -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('$'))