Fix ts syn skip expression

This commit is contained in:
Andy K. Massimino
2021-11-20 11:48:50 -05:00
parent 1840dac2c4
commit 90aa399c8e
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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