fix(rust): highlight parameters with ref in definition

This commit is contained in:
Riley Bruins 2024-11-02 13:59:12 -07:00 committed by Christian Clason
parent 98b46a647e
commit 01a92da438
2 changed files with 16 additions and 0 deletions

View file

@ -54,6 +54,14 @@
"_"
] @variable.parameter)
(parameter
(ref_pattern
[
(mut_pattern
(identifier) @variable.parameter)
(identifier) @variable.parameter
]))
(closure_parameters
(_) @variable.parameter)