mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
highlights(javascript): "?." -> optional_chain
This commit is contained in:
parent
2bb9bb7386
commit
9dd1065ebe
4 changed files with 7 additions and 3 deletions
|
|
@ -122,7 +122,6 @@
|
|||
";" @punctuation.delimiter
|
||||
"." @punctuation.delimiter
|
||||
"," @punctuation.delimiter
|
||||
"?." @punctuation.delimiter
|
||||
|
||||
(pair ":" @punctuation.delimiter)
|
||||
|
||||
|
|
|
|||
|
|
@ -31,3 +31,6 @@
|
|||
(formal_parameters
|
||||
(assignment_pattern
|
||||
left: (identifier) @parameter))
|
||||
|
||||
;; punctuation
|
||||
(optional_chain) @punctuation.delimiter
|
||||
|
|
|
|||
|
|
@ -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