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

0.6.0-stable
Mike Mazur 2008-11-04 01:30:39 +00:00
parent a66081f562
commit 6e14d1005a
1 changed files with 1 additions and 1 deletions

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