JS highlights: highlight optional parameters

This commit is contained in:
Stephan Seitz 2020-11-05 00:43:50 +01:00 committed by Stephan Seitz
parent 6900e5f704
commit aeb8c7d9fa

View file

@ -112,6 +112,11 @@
value: (arrow_function
parameter: (identifier) @parameter))
; optional parameters
(formal_parameters
(assignment_pattern
(shorthand_property_identifier) @parameter))
; Variables
;----------
(namespace_import