From e265fec94c7dc0c8c64cb86820ff5ad3ee135c7d Mon Sep 17 00:00:00 2001 From: Jonas Dujava Date: Fri, 26 Jul 2024 12:14:14 +0200 Subject: [PATCH] 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 --- queries/latex/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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