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>
This commit is contained in:
Jonas Dujava 2024-07-26 12:14:14 +02:00 committed by Christian Clason
parent e0faad4a9e
commit e265fec94c

View file

@ -67,7 +67,7 @@
(environment_definition
command: _ @function.macro @nospell
name: (curly_group_text
(_) @markup.link))
(_) @label @nospell))
(theorem_definition
command: _ @function.macro @nospell