vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 2f0fef757ba7ba93748f301d6492d0db86612cec parent ae749fec2d50aed142493ff60d29b02b6bf051a7 Author: Matěj Cepl <mcepl@cepl.eu> Date: Fri, 11 Aug 2023 16:22:58 +0200 Get lexers from the subdirectory of directories on the path. Based on the advice from the upstream maintainer of Scintillua (gh#orbitalquark/scintillua#87). Diffstat:
| M | lua/lexers/lexer.lua | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 })