aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-17 13:41:25 +1000
committerDavid Walter Seikel2012-01-17 13:41:25 +1000
commitb040eaa42881363f5956e6cda1cea0d84e7ee5ef (patch)
treeffa6fefb8c4d5f4620738df0bef21945b135fe00
parentChange that butt ugly name. (diff)
downloadSledjHamr-b040eaa42881363f5956e6cda1cea0d84e7ee5ef.zip
SledjHamr-b040eaa42881363f5956e6cda1cea0d84e7ee5ef.tar.gz
SledjHamr-b040eaa42881363f5956e6cda1cea0d84e7ee5ef.tar.bz2
SledjHamr-b040eaa42881363f5956e6cda1cea0d84e7ee5ef.tar.xz
Should point to the start of the symbol, not the end.
-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 {