1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/odin/locals.scm

40 lines
848 B
Scheme

; Scopes
[
(block)
(declaration)
(statement)
] @scope
; References
(identifier) @reference
; Definitions
(package_declaration (identifier) @definition.namespace)
(import_declaration alias: (identifier) @definition.namespace)
(procedure_declaration (identifier) @definition.function)
(struct_declaration (identifier) @definition.type "::")
(enum_declaration (identifier) @definition.enum "::")
(union_declaration (identifier) @definition.type "::")
(variable_declaration (identifier) @definition.var ":=")
(const_declaration (identifier) @definition.constant "::")
(const_type_declaration (identifier) @definition.type ":")
(parameter (identifier) @definition.parameter ":"?)
(default_parameter (identifier) @definition.parameter ":=")
(field (identifier) @definition.field ":")
(label_statement (identifier) @definition ":")