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)
|
||||
{
|
||||
if (CSReservedWords.IsReservedWord(s))
|
||||
return "_" + s;
|
||||
return "@" + s;
|
||||
else
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue