aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lexer.l
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-17 10:29:48 +1000
committerDavid Walter Seikel2012-01-17 10:29:48 +1000
commitdc7af57b02a95b67fa4dc556861d327a020428bc (patch)
tree4cf32c36e25953ef8c21f3f50e39e9d58c260108 /LuaSL/src/LuaSL_lexer.l
parentDisable the file compare for now, got lots to add before it will work again. (diff)
downloadSledjHamr-dc7af57b02a95b67fa4dc556861d327a020428bc.zip
SledjHamr-dc7af57b02a95b67fa4dc556861d327a020428bc.tar.gz
SledjHamr-dc7af57b02a95b67fa4dc556861d327a020428bc.tar.bz2
SledjHamr-dc7af57b02a95b67fa4dc556861d327a020428bc.tar.xz
Parser now understands state, function, and variable derlarations. Including scope. :-P
Diffstat (limited to 'LuaSL/src/LuaSL_lexer.l')
-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 afc99ce..4dde0ac 100644
--- a/LuaSL/src/LuaSL_lexer.l
+++ b/LuaSL/src/LuaSL_lexer.l
@@ -74,8 +74,8 @@ STRING \"(\\.|[^\\"\n])*\"
74 74
75 /* Other symbols. */ 75 /* Other symbols. */
76"@" %{ return common(yylval, yytext, yyextra, TRUE, LSL_LABEL); %} 76"@" %{ return common(yylval, yytext, yyextra, TRUE, LSL_LABEL); %}
77"{" %{ return common(yylval, yytext, yyextra, TRUE, LSL_BLOCK_OPEN); %} 77"{" %{ beginBlock(yyextra, yylval); return common(yylval, yytext, yyextra, TRUE, LSL_BLOCK_OPEN); %}
78"}" %{ return common(yylval, yytext, yyextra, TRUE, LSL_BLOCK_CLOSE); %} 78"}" %{ endBlock(yyextra, yylval); return common(yylval, yytext, yyextra, TRUE, LSL_BLOCK_CLOSE); %}
79";" %{ return common(yylval, yytext, yyextra, TRUE, LSL_STATEMENT); %} 79";" %{ return common(yylval, yytext, yyextra, TRUE, LSL_STATEMENT); %}
80 80
81 /* Type keywords. */ 81 /* Type keywords. */