Prefix LSL variables which are C# keywords with @ instead of _ when translating from LSL to C#. Thanks idb for the patch. Fix issue 2546.
parent
a66081f562
commit
6e14d1005a
|
@ -985,7 +985,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||||
private string CheckName(string s)
|
private string CheckName(string s)
|
||||||
{
|
{
|
||||||
if (CSReservedWords.IsReservedWord(s))
|
if (CSReservedWords.IsReservedWord(s))
|
||||||
return "_" + s;
|
return "@" + s;
|
||||||
else
|
else
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue