mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
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:
parent
724f8c7e79
commit
b972f1d985
1 changed files with 1 additions and 2 deletions
|
|
@ -167,8 +167,7 @@
|
|||
(parameter_declaration
|
||||
declarator: (pointer_declarator) @parameter)
|
||||
|
||||
(preproc_params
|
||||
(identifier)) @parameter
|
||||
(preproc_params (identifier) @parameter)
|
||||
|
||||
[
|
||||
"__attribute__"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue