mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
feat(javascript): highlight parameter destructuring patterns
This commit is contained in:
parent
3c42a6400e
commit
aab2274e2c
2 changed files with 25 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue