aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-11-13 14:37:06 -0500
committerStephan Seitz <stephan.seitz@fau.de>2021-11-14 11:02:57 +0100
commitb972f1d985a078ff63c92eb18960629846d9a0c1 (patch)
tree794330e4975cc6734676d85259e0193f1eaee2d9
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-b972f1d985a078ff63c92eb18960629846d9a0c1.tar
nvim-treesitter-b972f1d985a078ff63c92eb18960629846d9a0c1.tar.gz
nvim-treesitter-b972f1d985a078ff63c92eb18960629846d9a0c1.tar.bz2
nvim-treesitter-b972f1d985a078ff63c92eb18960629846d9a0c1.tar.lz
nvim-treesitter-b972f1d985a078ff63c92eb18960629846d9a0c1.tar.xz
nvim-treesitter-b972f1d985a078ff63c92eb18960629846d9a0c1.tar.zst
nvim-treesitter-b972f1d985a078ff63c92eb18960629846d9a0c1.zip
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
-rw-r--r--queries/c/highlights.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm
index 3b33f303e..c3a9db172 100644
--- a/queries/c/highlights.scm
+++ b/queries/c/highlights.scm
@@ -167,8 +167,7 @@
(parameter_declaration
declarator: (pointer_declarator) @parameter)
-(preproc_params
- (identifier)) @parameter
+(preproc_params (identifier) @parameter)
[
"__attribute__"