mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
Fix ts syn skip expression
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user