mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
highlights(c): Lower the priority of @variable
Lower the priority of @variable to prefer @parameter highlight when identifier appears in parameter_declaration. Fixes #3061
This commit is contained in:
parent
6b9c9aba69
commit
71395d90c0
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
(identifier) @variable
|
||||
; Lower priority to prefer @parameter when identifier appears in parameter_declaration.
|
||||
((identifier) @variable (#set! "priority" 95))
|
||||
|
||||
[
|
||||
"const"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue