diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-11-02 13:59:12 -0700 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-03 11:46:40 +0100 |
| commit | 01a92da4389b5346b4049c5b42256c9d84526f04 (patch) | |
| tree | 78a2c1f4290131dbad63c978098daf313770cafd /queries | |
| parent | feat(regex): highlights for lazy quantifiers, \k (diff) | |
| download | nvim-treesitter-01a92da4389b5346b4049c5b42256c9d84526f04.tar nvim-treesitter-01a92da4389b5346b4049c5b42256c9d84526f04.tar.gz nvim-treesitter-01a92da4389b5346b4049c5b42256c9d84526f04.tar.bz2 nvim-treesitter-01a92da4389b5346b4049c5b42256c9d84526f04.tar.lz nvim-treesitter-01a92da4389b5346b4049c5b42256c9d84526f04.tar.xz nvim-treesitter-01a92da4389b5346b4049c5b42256c9d84526f04.tar.zst nvim-treesitter-01a92da4389b5346b4049c5b42256c9d84526f04.zip | |
fix(rust): highlight parameters with ref in definition
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/rust/highlights.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index f4d058efa..fa25ad6cf 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -54,6 +54,14 @@ "_" ] @variable.parameter) +(parameter + (ref_pattern + [ + (mut_pattern + (identifier) @variable.parameter) + (identifier) @variable.parameter + ])) + (closure_parameters (_) @variable.parameter) |
