mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
JS highlights: highlight optional parameters
This commit is contained in:
parent
6900e5f704
commit
aeb8c7d9fa
1 changed files with 5 additions and 0 deletions
|
|
@ -112,6 +112,11 @@
|
|||
value: (arrow_function
|
||||
parameter: (identifier) @parameter))
|
||||
|
||||
; optional parameters
|
||||
(formal_parameters
|
||||
(assignment_pattern
|
||||
(shorthand_property_identifier) @parameter))
|
||||
|
||||
; Variables
|
||||
;----------
|
||||
(namespace_import
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue