Fix lexer bugs.
Already handled by inside isalnum.
This commit is contained in:
@@ -701,7 +701,7 @@ public class LexState extends Constants {
|
|||||||
LuaString ts;
|
LuaString ts;
|
||||||
do {
|
do {
|
||||||
save_and_next();
|
save_and_next();
|
||||||
} while (isalnum(current) || current == '_');
|
} while (isalnum(current));
|
||||||
ts = newstring(buff, 0, nbuff);
|
ts = newstring(buff, 0, nbuff);
|
||||||
if ( RESERVED.containsKey(ts) )
|
if ( RESERVED.containsKey(ts) )
|
||||||
return ((Integer)RESERVED.get(ts)).intValue();
|
return ((Integer)RESERVED.get(ts)).intValue();
|
||||||
|
|||||||
Reference in New Issue
Block a user