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:
mliszcz 2022-07-20 15:13:58 +02:00 committed by Stephan Seitz
parent 6b9c9aba69
commit 71395d90c0

View file

@ -1,4 +1,5 @@
(identifier) @variable
; Lower priority to prefer @parameter when identifier appears in parameter_declaration.
((identifier) @variable (#set! "priority" 95))
[
"const"