highlights(latex): only highlight command name, not whole command

This commit is contained in:
Stephan Seitz 2022-05-21 12:47:48 +02:00 committed by Christian Clason
parent 30b9ba1fef
commit d605120dcc

View file

@ -1,7 +1,7 @@
;; General syntax ;; General syntax
(ERROR) @error (ERROR) @error
(generic_command) @function (command_name) @function
(caption (caption
command: _ @function) command: _ @function)
@ -129,7 +129,6 @@
(author_declaration (author_declaration
command: _ @namespace command: _ @namespace
authors: (curly_group_author_list authors: (curly_group_author_list
((command_name)? @function)
((author)+ @text.title))) ((author)+ @text.title)))
(chapter (chapter