mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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
63
runtime/queries/odin/locals.scm
Normal file
63
runtime/queries/odin/locals.scm
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
; Scopes
|
||||
[
|
||||
(block)
|
||||
(declaration)
|
||||
(statement)
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
(identifier) @local.reference
|
||||
|
||||
; Definitions
|
||||
(package_declaration
|
||||
(identifier) @local.definition.namespace)
|
||||
|
||||
(import_declaration
|
||||
alias: (identifier) @local.definition.namespace)
|
||||
|
||||
(procedure_declaration
|
||||
(identifier) @local.definition.function)
|
||||
|
||||
(struct_declaration
|
||||
(identifier) @local.definition.type
|
||||
"::")
|
||||
|
||||
(enum_declaration
|
||||
(identifier) @local.definition.enum
|
||||
"::")
|
||||
|
||||
(union_declaration
|
||||
(identifier) @local.definition.type
|
||||
"::")
|
||||
|
||||
(bit_field_declaration
|
||||
(identifier) @local.definition.type
|
||||
"::")
|
||||
|
||||
(variable_declaration
|
||||
(identifier) @local.definition.var
|
||||
":=")
|
||||
|
||||
(const_declaration
|
||||
(identifier) @local.definition.constant
|
||||
"::")
|
||||
|
||||
(const_type_declaration
|
||||
(identifier) @local.definition.type
|
||||
":")
|
||||
|
||||
(parameter
|
||||
(identifier) @local.definition.parameter
|
||||
":"?)
|
||||
|
||||
(default_parameter
|
||||
(identifier) @local.definition.parameter
|
||||
":=")
|
||||
|
||||
(field
|
||||
(identifier) @local.definition.field
|
||||
":")
|
||||
|
||||
(label_statement
|
||||
(identifier) @local.definition
|
||||
":")
|
||||
Loading…
Add table
Add a link
Reference in a new issue