diff options
author | Mike Mazur | 2009-06-07 10:22:41 +0000 |
---|---|---|
committer | Mike Mazur | 2009-06-07 10:22:41 +0000 |
commit | 48bc2f3a4299390538efeb1c0bd97424cfa1ea28 (patch) | |
tree | ecf607b4a1dd80530faa3de69708bc1d7a4ce76a /OpenSim/Region/ScriptEngine/Shared/CodeTools/lsl.lexer.cs | |
parent | * Reverting the test restructuring as, on second thought, this is not at all ... (diff) | |
download | opensim-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.cs | 1 |
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"); } |