mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(javascript): "?." -> optional_chain
This commit is contained in:
parent
2bb9bb7386
commit
9dd1065ebe
4 changed files with 7 additions and 3 deletions
|
|
@ -156,7 +156,7 @@
|
|||
"revision": "72a9af08f4e501fad1252cc62f71469f247229f1"
|
||||
},
|
||||
"javascript": {
|
||||
"revision": "35565430231d0c15b748b0c9de36b247d8780f75"
|
||||
"revision": "936d976a782e75395d9b1c8c7c7bf4ba6fe0d86b"
|
||||
},
|
||||
"jsdoc": {
|
||||
"revision": "189a6a4829beb9cdbe837260653b4a3dfb0cc3db"
|
||||
|
|
|
|||
|
|
@ -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