c: Add local queries

pull/8678/head
Marijn Suijten 10 months ago committed by Marijn Suijten
parent 51216f1c42
commit cdb4f7f5aa
No known key found for this signature in database
GPG Key ID: 23E7CB3F180C39F2

@ -0,0 +1,22 @@
; Scopes
[
(function_definition)
(if_statement)
(for_statement)
(compound_statement)
] @local.scope
; Definitions
(declaration
declarator: (identifier) @local.definition)
(parameter_declaration
declarator: (identifier) @local.definition)
(pointer_declarator
declarator: (identifier) @local.definition)
(array_declarator
declarator: (identifier) @local.definition)
(init_declarator
declarator: (identifier) @local.definition)
; References
(identifier) @local.reference
Loading…
Cancel
Save