aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lexer.l
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-30 13:33:11 +1000
committerDavid Walter Seikel2012-01-30 13:33:11 +1000
commit8b71bc2d2905ca2ded0789a5534efc914ea84858 (patch)
treea0d16e863f4a65c6dc60bfbe77504e22b950dc3a /LuaSL/src/LuaSL_lexer.l
parenttoken -> toKen. Seems to be a key word somewhere, best to be safe. (diff)
downloadSledjHamr-8b71bc2d2905ca2ded0789a5534efc914ea84858.zip
SledjHamr-8b71bc2d2905ca2ded0789a5534efc914ea84858.tar.gz
SledjHamr-8b71bc2d2905ca2ded0789a5534efc914ea84858.tar.bz2
SledjHamr-8b71bc2d2905ca2ded0789a5534efc914ea84858.tar.xz
Change the way blocks start and end, the look ahead was screwing things.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_lexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l
index c66a3a8..0c7d627 100644
--- a/LuaSL/src/LuaSL_lexer.l
+++ b/LuaSL/src/LuaSL_lexer.l
@@ -76,8 +76,8 @@ STRING \"(\\.|[^\\"\n])*\"
76 76
77 /* Other symbols. */ 77 /* Other symbols. */
78"@" %{ return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_LABEL); %} 78"@" %{ return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_LABEL); %}
79"{" %{ beginBlock(yyextra, yylval); return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_BLOCK_OPEN); %} 79"{" %{ return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_BLOCK_OPEN); %}
80"}" %{ endBlock(yyextra, yylval); return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_BLOCK_CLOSE); %} 80"}" %{ return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_BLOCK_CLOSE); %}
81";" %{ return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_STATEMENT); %} 81";" %{ return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_STATEMENT); %}
82 82
83 /* Type keywords. */ 83 /* Type keywords. */