mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
parser PR: https://github.com/madskjeldgaard/tree-sitter-supercollider/pull/67 removed nodes: control_structure, if, while, for, forby, method_call, method_name, instance_variable_setter_call, argument_calls added nodes: class_def_body, !==, === modified nodes: function_call now has fields receiver, name and arguments chained method calls now appear as nested function_calls (where receiver is another function_call)
28 lines
571 B
Scheme
28 lines
571 B
Scheme
; Scopes
|
|
[
|
|
(function_call)
|
|
(code_block)
|
|
(function_block)
|
|
] @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
|