mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
feat(latex): capture left/right math delimiters
Capture math delimiters provided by commands such as `\left` and `\right`. Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
This commit is contained in:
parent
ed871c970a
commit
88aa09e6e9
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@
|
||||||
|
|
||||||
(delimiter) @punctuation.delimiter
|
(delimiter) @punctuation.delimiter
|
||||||
|
|
||||||
|
(math_delimiter
|
||||||
|
left_command: _ @punctuation.delimiter
|
||||||
|
left_delimiter: _ @punctuation.delimiter
|
||||||
|
right_command: _ @punctuation.delimiter
|
||||||
|
right_delimiter: _ @punctuation.delimiter)
|
||||||
|
|
||||||
[
|
[
|
||||||
"["
|
"["
|
||||||
"]"
|
"]"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue