Fix matching of \\[1ex] (fixes #84)

This commit is contained in:
Andy K. Massimino
2020-02-17 14:51:31 -05:00
parent 5822783911
commit 6fedba77ed
2 changed files with 8 additions and 1 deletions

View File

@@ -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\>'

7
test/issues/84/ex.tex Normal file
View File

@@ -0,0 +1,7 @@
\[
\begin{gathered}
First equation \\
Second equation \\[1ex]
Third and last equation
\end{gathered}
\]