Skip to content

Commit

Permalink
feat(syntax): conceal math space adjust commands
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Apr 15, 2021
1 parent e6c03a1 commit 0d8a69f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoload/vimtex/syntax/core.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,7 @@ function! s:match_math_symbols() abort " {{{1
syntax match texMathSymbol "\\rceil\>" contained conceal cchar=
syntax match texMathSymbol "\\Re\>" contained conceal cchar=
syntax match texMathSymbol "\\quad\>" contained conceal cchar= 
syntax match texMathSymbol "\\[,:;!]" contained conceal
syntax match texMathSymbol "\\qquad\>" contained conceal cchar=
syntax match texMathSymbol "\\rightarrow\>" contained conceal cchar=
syntax match texMathSymbol "\\Rightarrow\>" contained conceal cchar=
Expand Down
4 changes: 4 additions & 0 deletions test/test-syntax/test-conceal.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@
$4 \mathit{x} = \mathbf{test}$
$\mathrm{Re} = \cdots$

\begin{equation}
\mathbb{P}(x \,|\, y) \!= \dots
\end{equation}

\end{document}

0 comments on commit 0d8a69f

Please sign in to comment.