Prefix LSL variables which are C# keywords with @ instead of _ when translating from LSL to C#. Thanks idb for the patch. Fix issue 2546.

This commit is contained in:
Mike Mazur
2008-11-04 01:30:39 +00:00
parent a66081f562
commit 6e14d1005a

View File

@@ -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;
}