aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Dujava <jonas.dujava@gmail.com>2024-07-26 12:14:14 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-07-26 14:11:34 +0200
commite265fec94c7dc0c8c64cb86820ff5ad3ee135c7d (patch)
treebdd007515741c51064ee39d69db9219fe2362125
parentbot(lockfile): update gleam, idl, sql (diff)
downloadnvim-treesitter-e265fec94c7dc0c8c64cb86820ff5ad3ee135c7d.tar
nvim-treesitter-e265fec94c7dc0c8c64cb86820ff5ad3ee135c7d.tar.gz
nvim-treesitter-e265fec94c7dc0c8c64cb86820ff5ad3ee135c7d.tar.bz2
nvim-treesitter-e265fec94c7dc0c8c64cb86820ff5ad3ee135c7d.tar.lz
nvim-treesitter-e265fec94c7dc0c8c64cb86820ff5ad3ee135c7d.tar.xz
nvim-treesitter-e265fec94c7dc0c8c64cb86820ff5ad3ee135c7d.tar.zst
nvim-treesitter-e265fec94c7dc0c8c64cb86820ff5ad3ee135c7d.zip
fix(latex): environment name should be label
Environment names are captured as `@label` in `(begin)` and `(end)` nodes, and so should they be when we are defining environments. Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
-rw-r--r--queries/latex/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm
index c0f0bb2ba..956c753f7 100644
--- a/queries/latex/highlights.scm
+++ b/queries/latex/highlights.scm
@@ -67,7 +67,7 @@
(environment_definition
command: _ @function.macro @nospell
name: (curly_group_text
- (_) @markup.link))
+ (_) @label @nospell))
(theorem_definition
command: _ @function.macro @nospell