aboutsummaryrefslogtreecommitdiffstats
path: root/queries/latex
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-05-21 12:47:48 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-05-21 13:13:59 +0200
commitd605120dccde9e2c96af57c94e0997bc559ebb04 (patch)
treecf72e1392d251c5c8f25424c86cdc171bc5dc5fa /queries/latex
parenthighlights(slint): highlight operators and more punctuation (diff)
downloadnvim-treesitter-d605120dccde9e2c96af57c94e0997bc559ebb04.tar
nvim-treesitter-d605120dccde9e2c96af57c94e0997bc559ebb04.tar.gz
nvim-treesitter-d605120dccde9e2c96af57c94e0997bc559ebb04.tar.bz2
nvim-treesitter-d605120dccde9e2c96af57c94e0997bc559ebb04.tar.lz
nvim-treesitter-d605120dccde9e2c96af57c94e0997bc559ebb04.tar.xz
nvim-treesitter-d605120dccde9e2c96af57c94e0997bc559ebb04.tar.zst
nvim-treesitter-d605120dccde9e2c96af57c94e0997bc559ebb04.zip
highlights(latex): only highlight command name, not whole command
Diffstat (limited to 'queries/latex')
-rw-r--r--queries/latex/highlights.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index 92e242508..74edcafad 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