mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Ecma: Highlight single-argument callback parameter
This commit is contained in:
parent
e4083fc8e1
commit
0bab8e56b2
1 changed files with 4 additions and 0 deletions
|
|
@ -110,6 +110,10 @@
|
||||||
value: (arrow_function
|
value: (arrow_function
|
||||||
parameter: (identifier) @parameter))
|
parameter: (identifier) @parameter))
|
||||||
|
|
||||||
|
; (a => null)
|
||||||
|
(arrow_function
|
||||||
|
parameter: (identifier) @parameter)
|
||||||
|
|
||||||
; optional parameters
|
; optional parameters
|
||||||
(formal_parameters
|
(formal_parameters
|
||||||
(assignment_pattern
|
(assignment_pattern
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue