Skip to content

Commit

Permalink
Fix ts syn skip expression
Browse files Browse the repository at this point in the history
  • Loading branch information
andymass committed Nov 20, 2021
1 parent 1840dac commit 90aa399
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/matchup/loader.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions test/new/test-syn/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90aa399

Please sign in to comment.