Skip to content

Commit

Permalink
Add tex matchpref for relaxed env match (re #131)
Browse files Browse the repository at this point in the history
  • Loading branch information
andymass committed Feb 23, 2021
1 parent f1f11e7 commit b131a5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion after/ftplugin/tex_matchup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ function! s:get_match_words()
\ . ':\\item\>:\\end\s*{\1}'

" generic environment
let l:match_words .= ',\\begin\s*{\([^}]*\)}:\\end\s*{\1}'
if matchup#util#matchpref('relax_env', 0)
let l:match_words .= ',\\begin\s*{\([^}]*\)}:\\end\s*{\([^}]*\)}'
else
let l:match_words .= ',\\begin\s*{\([^}]*\)}:\\end\s*{\1}'
endif

" dollar sign math
let l:match_words .= ',\$:\$\g{syn;!texMathZoneX}'
Expand Down

0 comments on commit b131a5b

Please sign in to comment.