aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-04-17 20:10:14 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-04-17 20:10:14 -0400
commite9c5d08f58abb0485f6e471e0f215c758e4cb2b7 (patch)
treec42057490694c754105aa7d4b37fcc57712128c7 /core/init.lua
parent88419625268cce03b606584624b731ba10e37f21 (diff)
downloadtextadept-e9c5d08f58abb0485f6e471e0f215c758e4cb2b7.tar.gz
textadept-e9c5d08f58abb0485f6e471e0f215c758e4cb2b7.zip
Inline LuaJIT compatibility since it is mostly compatible with Lua 5.2.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/init.lua b/core/init.lua
index ea7efb81..7cb91798 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -4,7 +4,6 @@ _RELEASE = "Textadept 6.5"
package.path = _HOME..'/core/?.lua;'..package.path
-if jit then require 'compat' end -- compatibility for LuaJIT
_SCINTILLA = require 'iface'
args = require 'args'
_L = require 'locale'
@@ -20,6 +19,9 @@ gui.set_theme()
_M = {} -- modules table
+-- LuaJIT compatibility.
+if jit then module, package.searchers, bit32 = nil, package.loaders, bit end
+
--[[ This comment is for LuaDoc.
---
-- Extends Lua's _G table to provide extra functions and fields for Textadept.