mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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
|
value: (arrow_function
|
||||||
parameter: (identifier) @parameter))
|
parameter: (identifier) @parameter))
|
||||||
|
|
||||||
|
; optional parameters
|
||||||
|
(formal_parameters
|
||||||
|
(assignment_pattern
|
||||||
|
(shorthand_property_identifier) @parameter))
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
;----------
|
;----------
|
||||||
(namespace_import
|
(namespace_import
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue