From 6e14d1005a4662bed509d07b281461309d739331 Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Tue, 4 Nov 2008 01:30:39 +0000 Subject: Prefix LSL variables which are C# keywords with @ instead of _ when translating from LSL to C#. Thanks idb for the patch. Fix issue 2546. --- OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') 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 private string CheckName(string s) { if (CSReservedWords.IsReservedWord(s)) - return "_" + s; + return "@" + s; else return s; } -- cgit v1.1