diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak index fa75b497..3a775311 100644 --- a/rc/filetype/latex.kak +++ b/rc/filetype/latex.kak @@ -33,8 +33,11 @@ provide-module latex %~ add-highlighter shared/latex regions add-highlighter shared/latex/content default-region group -# Region for control sequence (includes latex2e arguments and options) starting with unescaped \ -# and ending at eol or word boundaries not preceded nor followed by @ : \ { } [ ] * +# Region for control sequence (includes latex2e arguments and options) +# starting with unescaped \ and ending : +# - at eol, or +# - at word boundaries not preceded nor followed by @ : \ { } [ ] *, or +# - after an unescaped } add-highlighter shared/latex/cs region '(?