Explorar el Código

Supporting unquoted string literals

Brian Fiete hace 5 años
padre
commit
9f7040154b
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  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('$'))