feat(javascript): highlight parameter destructuring patterns

This commit is contained in:
Ananda Umamil 2023-07-01 16:25:05 +07:00 committed by GitHub
parent 3c42a6400e
commit aab2274e2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View file

@ -115,6 +115,12 @@
(object_pattern
(shorthand_property_identifier_pattern) @parameter))
;; ({ a = b }) => null
(required_parameter
(object_pattern
(object_assignment_pattern
(shorthand_property_identifier_pattern) @parameter)))
;; ({ a: b }) => null
(required_parameter
(object_pattern