aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--LuaSL/src/LuaSL_lexer.l7
1 files changed, 4 insertions, 3 deletions
diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l
index 591dfdc..bb452f3 100644
--- a/LuaSL/src/LuaSL_lexer.l
+++ b/LuaSL/src/LuaSL_lexer.l
@@ -117,6 +117,10 @@ int common(YYSTYPE *lval, char *text, LuaSL_compiler *compiler, boolean checkIgn
117{ 117{
118 char *p; 118 char *p;
119 119
120 lval->token = tokens[type - lowestToken];
121 lval->line = compiler->line;
122 lval->column = compiler->column;
123
120 for (p = text; *p; p++) 124 for (p = text; *p; p++)
121 { 125 {
122 if ('\n' == *p) 126 if ('\n' == *p)
@@ -127,9 +131,6 @@ int common(YYSTYPE *lval, char *text, LuaSL_compiler *compiler, boolean checkIgn
127 else 131 else
128 compiler->column++; 132 compiler->column++;
129 } 133 }
130 lval->token = tokens[type - lowestToken];
131 lval->line = compiler->line;
132 lval->column = compiler->column;
133 134
134 if (checkIgnorable) 135 if (checkIgnorable)
135 { 136 {