aboutsummaryrefslogtreecommitdiff
path: root/lua/vis.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/vis.lua')
-rw-r--r--lua/vis.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/vis.lua b/lua/vis.lua
index 139f6dc..2432c72 100644
--- a/lua/vis.lua
+++ b/lua/vis.lua
@@ -280,7 +280,7 @@ vis.types.window.set_syntax = function(win, syntax)
if not lexer then return false end
for id, token_name in ipairs(lexer._TAGS) do
- local style = lexers['STYLE_' .. token_name:upper()] or ''
+ local style = lexers['STYLE_' .. token_name:upper():gsub("%.", "_")] or ''
if type(style) == 'table' then
local s = ''
if style.bold then