From 37a9e4263d30c5875a12e26f902baf8a83cd4d89 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 2 Nov 2023 11:19:37 -0500 Subject: [PATCH] refactor: remove uncessary `syn keyword` for delimiter highlighting See https://github.com/nvim-orgmode/orgmode/pull/623#discussion_r1380197043 > I don't think we need this. `syn` is used for old Vim syntax highlighting. --- lua/orgmode/colors/markup_highlighter.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/orgmode/colors/markup_highlighter.lua b/lua/orgmode/colors/markup_highlighter.lua index 2545cb197..795dc32fa 100644 --- a/lua/orgmode/colors/markup_highlighter.lua +++ b/lua/orgmode/colors/markup_highlighter.lua @@ -442,9 +442,8 @@ local function apply(namespace, bufnr, line_index) end local function setup() - for delimiter, marker in pairs(markers) do + for _, marker in pairs(markers) do vim.cmd(string.format(marker.hl_cmd, marker.hl_name)) - vim.cmd(string.format('syn keyword %s_delimiter %s', marker.hl_name, delimiter)) vim.cmd(string.format(marker.hl_cmd, marker.hl_name .. '_delimiter')) end vim.cmd('hi def link org_hyperlink Underlined')