From b131a5b35707eb0bf0cf088d85a8f100b4609332 Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Sat, 13 Feb 2021 14:32:12 -0500 Subject: [PATCH] Add tex matchpref for relaxed env match (re #131) --- after/ftplugin/tex_matchup.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/after/ftplugin/tex_matchup.vim b/after/ftplugin/tex_matchup.vim index bda196e..af726de 100644 --- a/after/ftplugin/tex_matchup.vim +++ b/after/ftplugin/tex_matchup.vim @@ -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}'