Sfoglia il codice sorgente

Supporting unquoted string literals

Brian Fiete 5 anni fa
parent
commit
9f7040154b
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      IDE/src/ScriptManager.bf

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