1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-27 12:30:04 +08:00
SpaceVim/bundle/nvim-treesitter/queries/c_sharp/locals.scm
2022-04-14 12:01:23 +08:00

42 lines
750 B
Scheme
Vendored

;; Definitions
(variable_declarator
. (identifier) @definition.var)
(variable_declarator
(tuple_pattern
(identifier) @definition.var))
(declaration_expression
name: (identifier) @definition.var)
(for_each_statement
left: (identifier) @definition.var)
(for_each_statement
left: (tuple_pattern
(identifier) @definition.var))
(parameter
(identifier) @definition.parameter)
(method_declaration
name: (identifier) @definition.method)
(local_function_statement
name: (identifier) @definition.method)
(property_declaration
name: (identifier) @definition)
(type_parameter
(identifier) @definition.type)
(class_declaration
name: (identifier) @definition)
;; References
(identifier) @reference
;; Scope
(block) @scope