nvim-treesitter/runtime/queries/supercollider/indents.scm
elgiano 544320a9cf feat(supercollider)!: update parser and queries
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)
2026-03-04 12:35:03 +01:00

42 lines
571 B
Scheme

[
(function_block)
(binary_expression)
(collection)
(indexed_collection)
(parameter_call_list)
(function_call)
(class_def)
(classvar)
(const)
(instance_var)
(variable_definition)
(variable_definition_sequence
(variable_definition))
(return_statement)
] @indent.begin
[
(parameter_call_list
(_))
")"
"}"
"]"
] @indent.branch
; for auto-indent while typing
(ERROR
"{") @indent.begin
(ERROR
"}") @indent.branch
(ERROR
"[") @indent.begin
(ERROR
"]") @indent.branch
[
(block_comment)
(line_comment)
] @indent.ignore