mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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
29
runtime/queries/supercollider/locals.scm
Normal file
29
runtime/queries/supercollider/locals.scm
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
; Scopes
|
||||
[
|
||||
(function_call)
|
||||
(code_block)
|
||||
(function_block)
|
||||
(control_structure)
|
||||
] @local.scope
|
||||
|
||||
; Definitions
|
||||
(argument
|
||||
name: (identifier) @local.definition.parameter
|
||||
(#set! definition.var.scope "local"))
|
||||
|
||||
(variable_definition
|
||||
name: (variable
|
||||
(local_var
|
||||
(identifier) @local.definition.var)))
|
||||
|
||||
(variable_definition
|
||||
name: (variable
|
||||
(environment_var
|
||||
(identifier) @local.definition.var))
|
||||
(#set! definition.var.scope "global"))
|
||||
|
||||
(function_definition
|
||||
name: (variable) @local.definition.var
|
||||
(#set! definition.var.scope "parent"))
|
||||
|
||||
(identifier) @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue