mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -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
57
runtime/queries/inko/locals.scm
Normal file
57
runtime/queries/inko/locals.scm
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
[
|
||||
(method)
|
||||
(block)
|
||||
] @local.scope
|
||||
|
||||
(method
|
||||
name: _ @local.definition.method)
|
||||
|
||||
(external_function
|
||||
name: _ @local.definition.function)
|
||||
|
||||
(argument
|
||||
name: _ @local.definition.parameter)
|
||||
|
||||
(define_variable
|
||||
name: _ @local.definition.var)
|
||||
|
||||
(define_constant
|
||||
name: _ @local.definition.constant)
|
||||
|
||||
(define_field
|
||||
name: _ @local.definition.field)
|
||||
|
||||
(named_argument
|
||||
name: _ @local.definition.parameter)
|
||||
|
||||
(class
|
||||
modifier: (modifier
|
||||
"enum")
|
||||
name: _ @local.definition.enum)
|
||||
|
||||
(class
|
||||
modifier: (modifier
|
||||
"enum")
|
||||
body: (class_body
|
||||
(define_case
|
||||
name: _ @local.definition.field)))
|
||||
|
||||
(class
|
||||
name: _ @local.definition.type)
|
||||
|
||||
(trait
|
||||
name: _ @local.definition.type)
|
||||
|
||||
(import
|
||||
(symbols
|
||||
[
|
||||
(identifier)
|
||||
(constant)
|
||||
(self)
|
||||
] @local.definition.import))
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
(field) @local.reference
|
||||
|
||||
(constant) @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue