mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
highlights(javascript): "?." -> optional_chain
This commit is contained in:
parent
2bb9bb7386
commit
9dd1065ebe
4 changed files with 7 additions and 3 deletions
|
|
@ -26,7 +26,7 @@
|
|||
((import_specifier
|
||||
name: (identifier) @type)))))
|
||||
|
||||
; punctuation
|
||||
;; punctuation
|
||||
|
||||
(type_arguments
|
||||
"<" @punctuation.bracket
|
||||
|
|
@ -44,6 +44,8 @@
|
|||
(pair
|
||||
":" @punctuation.delimiter)
|
||||
|
||||
"?." @punctuation.delimiter
|
||||
|
||||
(property_signature "?" @punctuation.special)
|
||||
(optional_parameter "?" @punctuation.special)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue