mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat(highlights): add is predicate
This commit is contained in:
parent
994baf4539
commit
579c9936d6
16 changed files with 102 additions and 39 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[
|
||||
[
|
||||
"const"
|
||||
"default"
|
||||
"enum"
|
||||
|
|
@ -131,8 +131,10 @@
|
|||
(comment) @comment
|
||||
|
||||
;; Parameters
|
||||
(parameter_list
|
||||
(parameter_declaration) @parameter)
|
||||
(parameter_declaration
|
||||
declarator: (identifier) @parameter)
|
||||
((identifier) @parameter.reference
|
||||
(#is? @parameter.reference parameter))
|
||||
|
||||
(preproc_params
|
||||
(identifier)) @parameter
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
(pointer_declarator
|
||||
declarator: (identifier) @definition.var)
|
||||
(parameter_declaration
|
||||
declarator: (identifier) @definition.var)
|
||||
declarator: (identifier) @definition.parameter)
|
||||
(init_declarator
|
||||
declarator: (identifier) @definition.var)
|
||||
(array_declarator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue