diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2019-04-07 12:54:48 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2019-04-07 12:54:48 -0300 |
commit | fd48534de3427de16c3077f7d112d0bcfb030b73 (patch) | |
tree | fe17de889f1a763594b71551546d411af50d8878 /test.lua | |
parent | 282dbabb7e4db8d2b2c4e2ab3e764fa9b8f48c8a (diff) |
Fix Lua 5.1/Lua 5.2/LuaJIT compat
Diffstat (limited to 'test.lua')
-rw-r--r-- | test.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test.lua b/test.lua index ef0a586..f9648eb 100644 --- a/test.lua +++ b/test.lua @@ -315,7 +315,7 @@ end -- keywords do -- FUCK local luatokens = require "luatokens" - local luatokens_file = io.open("./luatokens.lua", "r"):read((_VERSION == "5.1" or _VERSION == "5.2") and "*a" or "a") + local luatokens_file = io.open("./luatokens.lua", "r"):read((_VERSION == "Lua 5.1" or _VERSION == "Lua 5.2") and "*a" or "a") local tokens = luatokens.defs local state, err, etoken, estate = parser.parse(tokens, luatokens_file) local case = case() |