Fix lexer bugs.

Already handled by inside isalnum.
This commit is contained in:
Enyby
2019-10-21 10:17:26 +03:00
parent 22e7a8c620
commit f0e9348ae2

View File

@@ -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();