mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
feat: add koto
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
parent
df111f886c
commit
19c6b0c4c9
7 changed files with 182 additions and 0 deletions
28
queries/koto/locals.scm
Normal file
28
queries/koto/locals.scm
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
; Scopes
|
||||
(function
|
||||
body: (_) @local.scope)
|
||||
|
||||
; Definitions
|
||||
(arg
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(assign
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(for_args
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(match_patterns
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(import_item
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(entry_block
|
||||
(identifier) @local.definition.field)
|
||||
|
||||
(entry_inline
|
||||
(identifier) @local.definition.field)
|
||||
|
||||
; References
|
||||
(identifier) @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue