mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
feat(vim): highlight default parameters
This commit is contained in:
parent
3eb4dff014
commit
d6e6581a25
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@
|
|||
;; Function related
|
||||
(function_declaration name: (_) @function)
|
||||
(call_expression function: (identifier) @function)
|
||||
(function_declaration parameters: (parameters (identifier) @parameter))
|
||||
(parameters (identifier) @parameter)
|
||||
(default_parameter (identifier) @parameter)
|
||||
|
||||
[ (bang) (spread) (at) ] @punctuation.special
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue