From 6fedba77ed912c35bbff0138a738d85210c7120b Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Mon, 17 Feb 2020 14:51:31 -0500 Subject: [PATCH] Fix matching of \\[1ex] (fixes #84) --- after/ftplugin/tex_matchup.vim | 2 +- test/issues/84/ex.tex | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test/issues/84/ex.tex diff --git a/after/ftplugin/tex_matchup.vim b/after/ftplugin/tex_matchup.vim index 2f0c3d8..7bc9dfd 100644 --- a/after/ftplugin/tex_matchup.vim +++ b/after/ftplugin/tex_matchup.vim @@ -52,7 +52,7 @@ function! s:get_match_words() let l:match_words .= ',{:}' " latex equation markers - let l:match_words .= ',\\(:\\),\\\[:\\]' + let l:match_words .= ',\\(:\\),'.s:not_bslash.'\\\[:\\]' " simple blocks let l:match_words .= ',\\if\%(\w\|@\)*\>:\\else\>:\\fi\>' diff --git a/test/issues/84/ex.tex b/test/issues/84/ex.tex new file mode 100644 index 0000000..1b1e63b --- /dev/null +++ b/test/issues/84/ex.tex @@ -0,0 +1,7 @@ +\[ +\begin{gathered} +First equation \\ +Second equation \\[1ex] +Third and last equation +\end{gathered} +\]