mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -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
|
(parameter_declaration
|
||||||
declarator: (pointer_declarator) @parameter)
|
declarator: (pointer_declarator) @parameter)
|
||||||
|
|
||||||
(preproc_params
|
(preproc_params (identifier) @parameter)
|
||||||
(identifier)) @parameter
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"__attribute__"
|
"__attribute__"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue