mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
fix(vim): highlight more punctuation
This commit is contained in:
parent
1877e03bfa
commit
5cc225af44
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