Skip to content

Commit b131a5b

Browse files
committed
Add tex matchpref for relaxed env match (re #131)
1 parent f1f11e7 commit b131a5b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

after/ftplugin/tex_matchup.vim

+5-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ function! s:get_match_words()
6969
\ . ':\\item\>:\\end\s*{\1}'
7070

7171
" generic environment
72-
let l:match_words .= ',\\begin\s*{\([^}]*\)}:\\end\s*{\1}'
72+
if matchup#util#matchpref('relax_env', 0)
73+
let l:match_words .= ',\\begin\s*{\([^}]*\)}:\\end\s*{\([^}]*\)}'
74+
else
75+
let l:match_words .= ',\\begin\s*{\([^}]*\)}:\\end\s*{\1}'
76+
endif
7377

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

0 commit comments

Comments
 (0)