From d605120dccde9e2c96af57c94e0997bc559ebb04 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 21 May 2022 12:47:48 +0200 Subject: highlights(latex): only highlight command name, not whole command --- queries/latex/highlights.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index 92e24250..74edcafa 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -1,7 +1,7 @@ ;; General syntax (ERROR) @error -(generic_command) @function +(command_name) @function (caption command: _ @function) @@ -129,7 +129,6 @@ (author_declaration command: _ @namespace authors: (curly_group_author_list - ((command_name)? @function) ((author)+ @text.title))) (chapter -- cgit v1.2.3