From 0f46c5003f70f5a82141b247fb3869fcf6cba5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Fri, 11 Aug 2023 16:22:58 +0200 Subject: Get lexers from the subdirectory of directories on the path. Based on the advice from the upstream maintainer of Scintillua (gh#orbitalquark/scintillua#87). --- lua/lexers/lexer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lexers/lexer.lua b/lua/lexers/lexer.lua index 0c76272..f860d66 100644 --- a/lua/lexers/lexer.lua +++ b/lua/lexers/lexer.lua @@ -1446,7 +1446,7 @@ end --- Creates a substitute for some Scintilla tables and functions that Scintillua depends on -- when using it as a standalone module. local function initialize_standalone_library() - M.property = setmetatable({['scintillua.lexers'] = package.path:gsub('/%?%.lua', '')}, { + M.property = setmetatable({['scintillua.lexers'] = package.path:gsub('/%?%.lua', '/lexers')}, { __index = function() return '' end, __newindex = function(t, k, v) rawset(t, k, tostring(v)) end }) -- cgit v1.2.3