fix(latex): better environment precedence

This commit is contained in:
Riley Bruins 2024-01-21 20:52:06 -08:00 committed by Christian Clason
parent 023a8ee9a2
commit f72d9169f2

View file

@ -156,6 +156,12 @@
(curly_group_text
(_) @markup.link))
; Formatting
(text_mode
content:
(curly_group
(_) @none @spell))
; Math
[
(displayed_equation)
@ -167,17 +173,17 @@
command: _ @markup.math
name:
(curly_group_text
(text) @markup.math)))
(_) @markup.math)))
(math_environment
(text) @markup.math)
(_) @markup.math)
(math_environment
(end
command: _ @markup.math
name:
(curly_group_text
(text) @markup.math)))
(_) @markup.math)))
; Sectioning
(title_declaration
@ -276,12 +282,6 @@
(text) @markup.heading))
(#eq? @_name "\\frametitle"))
; Formatting
(text_mode
content:
(curly_group
(_) @none @spell))
((generic_command
command: (command_name) @_name
arg: