diff options
| author | Matěj Cepl <mcepl@cepl.eu> | 2023-08-11 16:22:58 +0200 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-03-27 06:04:21 -0600 |
| commit | 0f46c5003f70f5a82141b247fb3869fcf6cba5b8 (patch) | |
| tree | 09fab0cc0b0d926112f24d8ec10cc03da273be3f /lua | |
| parent | 4c4392d29df777ff702dfe99b4f3c23142976e05 (diff) | |
| download | vis-0f46c5003f70f5a82141b247fb3869fcf6cba5b8.tar.gz vis-0f46c5003f70f5a82141b247fb3869fcf6cba5b8.tar.xz | |
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 (limited to 'lua')
| -rw-r--r-- | lua/lexers/lexer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 }) |
