From 1a96801a52691867cfa46384cfbb9851743cae35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20BURGHARD?= Date: Sat, 25 Jun 2022 10:26:27 +0200 Subject: [PATCH] fix: check for escaped # and {. highlight nested arg (##1) --- rc/filetype/latex.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak index 4dbb74b4..cd4a4e01 100644 --- a/rc/filetype/latex.kak +++ b/rc/filetype/latex.kak @@ -48,9 +48,9 @@ add-highlighter shared/latex/content/ regex '_(bool|box|cctab|clist|coffin|dim|f # latex3 l3kernel modules (l3kernel/doc/l3prefixes.csv) add-highlighter shared/latex/content/ regex '\\(alignment|alloc|ampersand|atsign|backslash|bitset|bool|box|catcode|cctab|char|chk|circumflex|clist|code|codedoc|coffin|colon|color|cs|debug|dim|document|dollar|driver|e|else|empty|etex|exp|expl|false|fi|file|flag|fp|group|hash|hbox|hcoffin|if|inf|initex|insert|int|intarray|ior|iow|job|kernel|keys|keyval|left|log|lua|luatex|mark|marks|math|max|minus|mode|msg|muskip|nan|nil|no|novalue|one|or|other|parameter|pdf|pdftex|peek|percent|pi|prg|prop|ptex|quark|recursion|ref|regex|reverse|right|scan|seq|skip|sort|space|stop|str|sys|tag|term|tex|text|tilde|tl|tmpa|tmpb|token|true|underscore|uptex|use|utex|vbox|vcoffin|xetex|zero)_' 0:+db # macros arguments -add-highlighter shared/latex/content/ regex '#[1-9]\b' 0:string +add-highlighter shared/latex/content/ regex '(?