From 480af131791ca35d1483f2022c82c74dcaa0b9f6 Mon Sep 17 00:00:00 2001 From: TheLeoP Date: Tue, 24 Jun 2025 11:18:29 -0500 Subject: [PATCH] fix: correctly process b:match_skip when treesitter is enabled --- autoload/matchup/loader.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/matchup/loader.vim b/autoload/matchup/loader.vim index c84c47b..6c28972 100644 --- a/autoload/matchup/loader.vim +++ b/autoload/matchup/loader.vim @@ -32,8 +32,6 @@ function! matchup#loader#init_buffer() abort " {{{1 endif endif - let l:has_ts_hl = 0 - " initialize lists of delimiter pairs and regular expressions " this is the data obtained from parsing b:match_words let b:matchup_delim_lists = s:init_delim_lists(l:no_words, l:filt_words) @@ -43,7 +41,7 @@ function! matchup#loader#init_buffer() abort " {{{1 let b:matchup_delim_re = s:init_delim_regexes() " process b:match_skip - if l:has_ts_hl + if l:has_ts let b:matchup_delim_skip \ = "matchup#ts_syntax#skip_expr(s:effline('.'),s:effcol('.'))" else