nvim-treesitter/runtime/queries/supercollider/indents.scm

43 lines
571 B
Scheme
Raw Normal View History

2021-02-02 18:58:07 +01:00
[
(function_block)
(binary_expression)
2021-02-02 18:58:07 +01:00
(collection)
(indexed_collection)
2021-02-02 18:58:07 +01:00
(parameter_call_list)
(function_call)
(class_def)
(classvar)
(const)
(instance_var)
(variable_definition)
2024-01-06 15:05:50 +09:00
(variable_definition_sequence
(variable_definition))
(return_statement)
] @indent.begin
2021-02-02 18:58:07 +01:00
[
2024-01-06 15:05:50 +09:00
(parameter_call_list
(_))
2021-02-02 18:58:07 +01:00
")"
"}"
"]"
] @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