mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
fix(vim): highlight more punctuation
This commit is contained in:
parent
f2076b267e
commit
344b36866b
1 changed files with 14 additions and 0 deletions
|
|
@ -103,3 +103,17 @@
|
||||||
; Some characters have different meanings based on the context
|
; Some characters have different meanings based on the context
|
||||||
(unary_operation "!" @operator)
|
(unary_operation "!" @operator)
|
||||||
(binary_operation "." @operator)
|
(binary_operation "." @operator)
|
||||||
|
|
||||||
|
;; Punctuation
|
||||||
|
|
||||||
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(field_expression "." @punctuation.delimiter)
|
||||||
|
"," @punctuation.delimiter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue