aboutsummaryrefslogtreecommitdiff
path: root/lua/vis.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/vis.lua')
-rw-r--r--lua/vis.lua4
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