spacevim/bundle/nvim-treesitter-0.9.1/queries/cue/locals.scm

35 lines
458 B
Scheme
Raw Normal View History

2024-08-21 14:17:26 +08:00
; Scopes
[
(source_file)
(field)
(for_clause)
] @scope
; References
(identifier) @reference
; Definitions
(import_spec
path: (string) @definition.import)
(field
(label
(identifier) @definition.field))
(package_identifier) @definition.namespace
(for_clause
(identifier) @definition.variable
(expression))
(for_clause
(identifier)
(identifier) @definition.variable
(expression))
(let_clause
(identifier) @definition.variable)