mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(rust): highlight parameters with ref in definition
This commit is contained in:
parent
98b46a647e
commit
01a92da438
2 changed files with 16 additions and 0 deletions
8
tests/query/highlights/rust/parameters.rs
Normal file
8
tests/query/highlights/rust/parameters.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
pub fn func(ref root: &mut Element, ref mut param2: u32) {
|
||||
// ^^^ @keyword.modifier
|
||||
// ^^^^ @variable.parameter
|
||||
// ^^^ @keyword.modifier
|
||||
// ^^^ @keyword.modifier
|
||||
// ^^^^^^ @variable.parameter
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue