From f0e9348ae25b7eff36d8e5063f552e98aff0cbca Mon Sep 17 00:00:00 2001 From: Enyby Date: Mon, 21 Oct 2019 10:17:26 +0300 Subject: [PATCH] Fix lexer bugs. Already handled by inside isalnum. --- src/core/org/luaj/vm2/compiler/LexState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/org/luaj/vm2/compiler/LexState.java b/src/core/org/luaj/vm2/compiler/LexState.java index d19ba49f..ca4e0970 100644 --- a/src/core/org/luaj/vm2/compiler/LexState.java +++ b/src/core/org/luaj/vm2/compiler/LexState.java @@ -701,7 +701,7 @@ public class LexState extends Constants { LuaString ts; do { save_and_next(); - } while (isalnum(current) || current == '_'); + } while (isalnum(current)); ts = newstring(buff, 0, nbuff); if ( RESERVED.containsKey(ts) ) return ((Integer)RESERVED.get(ts)).intValue();