mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -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
31
runtime/queries/cue/locals.scm
Normal file
31
runtime/queries/cue/locals.scm
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
; Scopes
|
||||
[
|
||||
(source_file)
|
||||
(field)
|
||||
(for_clause)
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
(identifier) @local.reference
|
||||
|
||||
; Definitions
|
||||
(import_spec
|
||||
path: (string) @local.definition.import)
|
||||
|
||||
(field
|
||||
(label
|
||||
(identifier) @local.definition.field))
|
||||
|
||||
(package_identifier) @local.definition.namespace
|
||||
|
||||
(for_clause
|
||||
(identifier) @local.definition.var
|
||||
(expression))
|
||||
|
||||
(for_clause
|
||||
(identifier)
|
||||
(identifier) @local.definition.var
|
||||
(expression))
|
||||
|
||||
(let_clause
|
||||
(identifier) @local.definition.var)
|
||||
Loading…
Add table
Add a link
Reference in a new issue