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 /tests | |
| 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 'tests')
| -rw-r--r-- | tests/query/highlights/rust/parameters.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/query/highlights/rust/parameters.rs b/tests/query/highlights/rust/parameters.rs new file mode 100644 index 000000000..171cc5c5d --- /dev/null +++ b/tests/query/highlights/rust/parameters.rs @@ -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; +} |
