mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
parent
bb2846fd9b
commit
d89d698c26
1 changed files with 3 additions and 11 deletions
|
|
@ -8,15 +8,7 @@
|
|||
((environment
|
||||
(begin
|
||||
name: (word) @_env)) @text.math
|
||||
(#match? @_env "^(displaymath|equation|multline|eqnarray|align|array|split)[*]?$"))
|
||||
|
||||
;; This at the beginning of the file would be the alternative to highlight
|
||||
;; only the interior of the environment
|
||||
;((environment
|
||||
;(begin
|
||||
;name: (word) @_env) @none
|
||||
;(end) @none) @text.math
|
||||
;(#match? @_env "^(displaymath|eqn|eqnarray)[*]?$"))
|
||||
(#match? @_env "^(displaymath|equation|multline|eqnarray|align|array|split|alignat|gather|flalign)[*]?$"))
|
||||
|
||||
[
|
||||
(generic_command_name)
|
||||
|
|
@ -380,7 +372,7 @@
|
|||
|
||||
(begin
|
||||
name: (_) @text.environment.name
|
||||
(#not-match? @text.environment.name "^(displaymath|equation|multline|eqnarray|align|array|split)[*]?$"))
|
||||
(#not-match? @text.environment.name "^(displaymath|equation|multline|eqnarray|align|array|split|alignat|gather|flalign)[*]?$"))
|
||||
(end
|
||||
name: (_) @text.environment.name
|
||||
(#not-match? @text.environment.name "^(displaymath|equation|multline|eqnarray|align|array|split)[*]?$"))
|
||||
(#not-match? @text.environment.name "^(displaymath|equation|multline|eqnarray|align|array|split|alignat|gather|flalign)[*]?$"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue