From 1c8bd551dbcf04227c22227d5893fed57d5beadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20BURGHARD?= Date: Sun, 26 Jun 2022 21:40:56 +0200 Subject: [PATCH] feat: group for control sequence to scope highlighting of types and module --- rc/filetype/latex.kak | 61 ++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak index bfa70f39..46bdf046 100644 --- a/rc/filetype/latex.kak +++ b/rc/filetype/latex.kak @@ -33,37 +33,44 @@ provide-module latex %~ add-highlighter shared/latex regions add-highlighter shared/latex/content default-region group +# Region for control sequence (with latex2e arguments and options) starting with unescaped \ +# and ending at eol or word boundaries not preceded nor followed by @ : \ { } [ ] * +add-highlighter shared/latex/cs region '(?