mirror of https://github.com/helix-editor/helix
c: Add local queries
parent
51216f1c42
commit
cdb4f7f5aa
@ -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…
Reference in New Issue