From e9c5d08f58abb0485f6e471e0f215c758e4cb2b7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 17 Apr 2013 20:10:14 -0400 Subject: Inline LuaJIT compatibility since it is mostly compatible with Lua 5.2. --- core/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/init.lua') 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. -- cgit v1.2.3