From 90aa399c8edd2a790cfb9583437de0f03975d901 Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Sat, 20 Nov 2021 11:48:50 -0500 Subject: [PATCH] Fix ts syn skip expression --- autoload/matchup/loader.vim | 2 +- test/new/test-syn/test.vim | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/matchup/loader.vim b/autoload/matchup/loader.vim index d3713d8..b020d57 100644 --- a/autoload/matchup/loader.vim +++ b/autoload/matchup/loader.vim @@ -54,7 +54,7 @@ function! matchup#loader#init_buffer() abort " {{{1 " process b:match_skip if l:has_ts_hl let b:matchup_delim_skip - \ = "matchup#ts_syntax#skip_expr(line('.'), col('.'))" + \ = "matchup#ts_syntax#skip_expr(s:effline('.'),s:effcol('.'))" else let b:matchup_delim_skip = s:init_delim_skip() endif diff --git a/test/new/test-syn/test.vim b/test/new/test-syn/test.vim index 40a9df4..90a0b13 100644 --- a/test/new/test-syn/test.vim +++ b/test/new/test-syn/test.vim @@ -43,6 +43,8 @@ call matchup#loader#init_buffer() if s:expect_ts_engine call assert_equal(2, len(b:matchup_active_engines.delim_all)) +else + call assert_equal(1, len(b:matchup_active_engines.delim_all)) endif if $MODE == 2