mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
fix(latex): better environment precedence
This commit is contained in:
parent
023a8ee9a2
commit
f72d9169f2
1 changed files with 9 additions and 9 deletions
|
|
@ -156,6 +156,12 @@
|
||||||
(curly_group_text
|
(curly_group_text
|
||||||
(_) @markup.link))
|
(_) @markup.link))
|
||||||
|
|
||||||
|
; Formatting
|
||||||
|
(text_mode
|
||||||
|
content:
|
||||||
|
(curly_group
|
||||||
|
(_) @none @spell))
|
||||||
|
|
||||||
; Math
|
; Math
|
||||||
[
|
[
|
||||||
(displayed_equation)
|
(displayed_equation)
|
||||||
|
|
@ -167,17 +173,17 @@
|
||||||
command: _ @markup.math
|
command: _ @markup.math
|
||||||
name:
|
name:
|
||||||
(curly_group_text
|
(curly_group_text
|
||||||
(text) @markup.math)))
|
(_) @markup.math)))
|
||||||
|
|
||||||
(math_environment
|
(math_environment
|
||||||
(text) @markup.math)
|
(_) @markup.math)
|
||||||
|
|
||||||
(math_environment
|
(math_environment
|
||||||
(end
|
(end
|
||||||
command: _ @markup.math
|
command: _ @markup.math
|
||||||
name:
|
name:
|
||||||
(curly_group_text
|
(curly_group_text
|
||||||
(text) @markup.math)))
|
(_) @markup.math)))
|
||||||
|
|
||||||
; Sectioning
|
; Sectioning
|
||||||
(title_declaration
|
(title_declaration
|
||||||
|
|
@ -276,12 +282,6 @@
|
||||||
(text) @markup.heading))
|
(text) @markup.heading))
|
||||||
(#eq? @_name "\\frametitle"))
|
(#eq? @_name "\\frametitle"))
|
||||||
|
|
||||||
; Formatting
|
|
||||||
(text_mode
|
|
||||||
content:
|
|
||||||
(curly_group
|
|
||||||
(_) @none @spell))
|
|
||||||
|
|
||||||
((generic_command
|
((generic_command
|
||||||
command: (command_name) @_name
|
command: (command_name) @_name
|
||||||
arg:
|
arg:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue