diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2023-08-11 11:44:53 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-03-27 06:04:21 -0600 |
| commit | 78fd2201b9d9027a2e0961a9a74e3b6ff604de6d (patch) | |
| tree | 703f59397ac7068f44916cb409c62274093871ce /lua/vis.lua | |
| parent | 0f46c5003f70f5a82141b247fb3869fcf6cba5b8 (diff) | |
| download | vis-78fd2201b9d9027a2e0961a9a74e3b6ff604de6d.tar.gz vis-78fd2201b9d9027a2e0961a9a74e3b6ff604de6d.tar.xz | |
lua: update default plugins to work with scintillua 6.2
vis{,-std}.lua:
* replace removed _TOKENSTYLES with _TAGS
* don't add default styles to the lexer. lexers no longer
define their own styles
filetype.lua: update path detection for scintillua 6.2
Diffstat (limited to 'lua/vis.lua')
| -rw-r--r-- | lua/vis.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/vis.lua b/lua/vis.lua index f2f9421..f48451d 100644 --- a/lua/vis.lua +++ b/lua/vis.lua @@ -265,8 +265,8 @@ vis.types.window.set_syntax = function(win, syntax) local lexer = lexers.load(syntax) if not lexer then return false end - for token_name, id in pairs(lexer._TOKENSTYLES) do - local style = lexers['STYLE_' .. token_name:upper()] or lexer._EXTRASTYLES[token_name] + for id, token_name in ipairs(lexer._TAGS) do + local style = lexers['STYLE_' .. token_name:upper()] or '' if type(style) == 'table' then local s = '' if style.bold then |
