From 3880af6f391e3d2ad56bd57b1b0a9a4c4c40bc10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Fri, 26 Jan 2024 22:18:52 +0100 Subject: [PATCH] fix: simplify syntax regexes refer: #2877 --- autoload/vimtex/syntax/core.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/vimtex/syntax/core.vim b/autoload/vimtex/syntax/core.vim index 25e7cb72db..b68de3433b 100644 --- a/autoload/vimtex/syntax/core.vim +++ b/autoload/vimtex/syntax/core.vim @@ -55,12 +55,12 @@ function! vimtex#syntax#core#init_rules() abort " {{{1 syntax match texLigature "--" syntax match texLigature "---" - syntax match texLigature "\v%(``|''|,,)" + syntax match texLigature "``\|''\|,," syntax match texTabularChar "&" syntax match texTabularChar "\\\\" " E.g.: \$ \& \% \# \{ \} \_ \S \P - syntax match texSpecialChar "\%(\\\@]" conceal syntax match texSpecialChar "\\@\ze\s\+" conceal