mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user