aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs
diff options
context:
space:
mode:
authorMike Mazur2009-06-07 10:22:41 +0000
committerMike Mazur2009-06-07 10:22:41 +0000
commit48bc2f3a4299390538efeb1c0bd97424cfa1ea28 (patch)
treeecf607b4a1dd80530faa3de69708bc1d7a4ce76a /OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs
parent* Reverting the test restructuring as, on second thought, this is not at all ... (diff)
downloadopensim-SC-48bc2f3a4299390538efeb1c0bd97424cfa1ea28.zip
opensim-SC-48bc2f3a4299390538efeb1c0bd97424cfa1ea28.tar.gz
opensim-SC-48bc2f3a4299390538efeb1c0bd97424cfa1ea28.tar.bz2
opensim-SC-48bc2f3a4299390538efeb1c0bd97424cfa1ea28.tar.xz
Allow empty assignment in for-loop
For loops with no assignment are no longer syntax errors. For example, this is now valid: for ( ; i < 10; i++) { ... } Corresponding changes to lsl.{lexer,parser} in r99 in opensim-libs. Fixes Mantis #2501. Fixes Mantis #2884.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs
index a06e657..cad27b7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs
@@ -18785,6 +18785,7 @@ public override TOKEN OldAction(Lexer yym,ref string yytext,int action, ref bool
18785 case 946: { ((LSLTokens)yym).str += yytext; } 18785 case 946: { ((LSLTokens)yym).str += yytext; }
18786 break; 18786 break;
18787 case 1010: { yym.yy_begin("YYINITIAL"); ((LSLTokens)yym).yytext = ((LSLTokens)yym).str; ((LSLTokens)yym).str = String.Empty; return new STRING_CONSTANT(yym); } 18787 case 1010: { yym.yy_begin("YYINITIAL"); ((LSLTokens)yym).yytext = ((LSLTokens)yym).str; ((LSLTokens)yym).str = String.Empty; return new STRING_CONSTANT(yym); }
18788 break;
18788 case 1015: { yym.yy_begin("COMMENT"); } 18789 case 1015: { yym.yy_begin("COMMENT"); }
18789 break; 18790 break;
18790 case 1027: { yym.yy_begin("YYINITIAL"); } 18791 case 1027: { yym.yy_begin("YYINITIAL"); }