Remove the script engine identifier tag, so the compiler just sees

the language specifier. Makes language specifiers work again with
script engine specifiers.
0.6.0-stable
Melanie Thielker 2008-09-22 11:18:49 +00:00
parent 232aa783ad
commit b8a39a4dde
2 changed files with 2 additions and 0 deletions

View File

@ -204,6 +204,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
if (firstline.Length > 2 && firstline.Substring(0, 2) == "//" && colon != -1) if (firstline.Length > 2 && firstline.Substring(0, 2) == "//" && colon != -1)
{ {
engine = firstline.Substring(2, colon-2); engine = firstline.Substring(2, colon-2);
script = "//" + script.Substring(script.IndexOf(':')+1);
} }
} }

View File

@ -351,6 +351,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
if (firstline.Length > 2 && firstline.Substring(0, 2) == "//" && colon != -1) if (firstline.Length > 2 && firstline.Substring(0, 2) == "//" && colon != -1)
{ {
engine = firstline.Substring(2, colon-2); engine = firstline.Substring(2, colon-2);
script = "//" + script.Substring(script.IndexOf(':')+1);
} }
} }