C: fix preproc parameters

This was capturing too much,
we only want to highlight the identifier.

Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1999
This commit is contained in:
Santos Gallegos 2021-11-13 14:37:06 -05:00 committed by Stephan Seitz
parent 724f8c7e79
commit b972f1d985

View file

@ -167,8 +167,7 @@
(parameter_declaration
declarator: (pointer_declarator) @parameter)
(preproc_params
(identifier)) @parameter
(preproc_params (identifier) @parameter)
[
"__attribute__"