mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40: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"
|
"revision": "72a9af08f4e501fad1252cc62f71469f247229f1"
|
||||||
},
|
},
|
||||||
"javascript": {
|
"javascript": {
|
||||||
"revision": "35565430231d0c15b748b0c9de36b247d8780f75"
|
"revision": "936d976a782e75395d9b1c8c7c7bf4ba6fe0d86b"
|
||||||
},
|
},
|
||||||
"jsdoc": {
|
"jsdoc": {
|
||||||
"revision": "189a6a4829beb9cdbe837260653b4a3dfb0cc3db"
|
"revision": "189a6a4829beb9cdbe837260653b4a3dfb0cc3db"
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,6 @@
|
||||||
";" @punctuation.delimiter
|
";" @punctuation.delimiter
|
||||||
"." @punctuation.delimiter
|
"." @punctuation.delimiter
|
||||||
"," @punctuation.delimiter
|
"," @punctuation.delimiter
|
||||||
"?." @punctuation.delimiter
|
|
||||||
|
|
||||||
(pair ":" @punctuation.delimiter)
|
(pair ":" @punctuation.delimiter)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,3 +31,6 @@
|
||||||
(formal_parameters
|
(formal_parameters
|
||||||
(assignment_pattern
|
(assignment_pattern
|
||||||
left: (identifier) @parameter))
|
left: (identifier) @parameter))
|
||||||
|
|
||||||
|
;; punctuation
|
||||||
|
(optional_chain) @punctuation.delimiter
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
((import_specifier
|
((import_specifier
|
||||||
name: (identifier) @type)))))
|
name: (identifier) @type)))))
|
||||||
|
|
||||||
; punctuation
|
;; punctuation
|
||||||
|
|
||||||
(type_arguments
|
(type_arguments
|
||||||
"<" @punctuation.bracket
|
"<" @punctuation.bracket
|
||||||
|
|
@ -44,6 +44,8 @@
|
||||||
(pair
|
(pair
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
|
"?." @punctuation.delimiter
|
||||||
|
|
||||||
(property_signature "?" @punctuation.special)
|
(property_signature "?" @punctuation.special)
|
||||||
(optional_parameter "?" @punctuation.special)
|
(optional_parameter "?" @punctuation.special)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue