mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
42
runtime/queries/c_sharp/locals.scm
Normal file
42
runtime/queries/c_sharp/locals.scm
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
; Definitions
|
||||
(variable_declarator
|
||||
.
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(variable_declarator
|
||||
(tuple_pattern
|
||||
(identifier) @local.definition.var))
|
||||
|
||||
(declaration_expression
|
||||
name: (identifier) @local.definition.var)
|
||||
|
||||
(foreach_statement
|
||||
left: (identifier) @local.definition.var)
|
||||
|
||||
(foreach_statement
|
||||
left: (tuple_pattern
|
||||
(identifier) @local.definition.var))
|
||||
|
||||
(parameter
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(method_declaration
|
||||
name: (identifier) @local.definition.method)
|
||||
|
||||
(local_function_statement
|
||||
name: (identifier) @local.definition.method)
|
||||
|
||||
(property_declaration
|
||||
name: (identifier) @local.definition)
|
||||
|
||||
(type_parameter
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(class_declaration
|
||||
name: (identifier) @local.definition)
|
||||
|
||||
; References
|
||||
(identifier) @local.reference
|
||||
|
||||
; Scope
|
||||
(block) @local.scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue