mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
parent
bb2846fd9b
commit
d89d698c26
1 changed files with 3 additions and 11 deletions
|
|
@ -8,15 +8,7 @@
|
||||||
((environment
|
((environment
|
||||||
(begin
|
(begin
|
||||||
name: (word) @_env)) @text.math
|
name: (word) @_env)) @text.math
|
||||||
(#match? @_env "^(displaymath|equation|multline|eqnarray|align|array|split)[*]?$"))
|
(#match? @_env "^(displaymath|equation|multline|eqnarray|align|array|split|alignat|gather|flalign)[*]?$"))
|
||||||
|
|
||||||
;; 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)[*]?$"))
|
|
||||||
|
|
||||||
[
|
[
|
||||||
(generic_command_name)
|
(generic_command_name)
|
||||||
|
|
@ -380,7 +372,7 @@
|
||||||
|
|
||||||
(begin
|
(begin
|
||||||
name: (_) @text.environment.name
|
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
|
(end
|
||||||
name: (_) @text.environment.name
|
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