diff options
author | Mike Mazur | 2008-11-04 01:30:39 +0000 |
---|---|---|
committer | Mike Mazur | 2008-11-04 01:30:39 +0000 |
commit | 6e14d1005a4662bed509d07b281461309d739331 (patch) | |
tree | 72dbaa7a88961207e7910fdcf5377a93a1ca22c2 | |
parent | Update svn properties, minor formatting cleanup. (diff) | |
download | opensim-SC-6e14d1005a4662bed509d07b281461309d739331.zip opensim-SC-6e14d1005a4662bed509d07b281461309d739331.tar.gz opensim-SC-6e14d1005a4662bed509d07b281461309d739331.tar.bz2 opensim-SC-6e14d1005a4662bed509d07b281461309d739331.tar.xz |
Prefix LSL variables which are C# keywords with @ instead of _ when translating from LSL to C#. Thanks idb for the patch. Fix issue 2546.
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs index 5100f23..795d38f 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | |||
@@ -985,7 +985,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
985 | private string CheckName(string s) | 985 | private string CheckName(string s) |
986 | { | 986 | { |
987 | if (CSReservedWords.IsReservedWord(s)) | 987 | if (CSReservedWords.IsReservedWord(s)) |
988 | return "_" + s; | 988 | return "@" + s; |
989 | else | 989 | else |
990 | return s; | 990 | return s; |
991 | } | 991 | } |