mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
This ensures that when you add a new call line in the middle of a call
chain, the line is indented like so:
foo
.bar
.new_line_here
.baz
Instead of it being indented like so:
foo
.bar
.new_line_here
.baz
41 lines
599 B
Scheme
41 lines
599 B
Scheme
[
|
|
(arguments)
|
|
(array)
|
|
(assign_field)
|
|
(assign_local)
|
|
(assign_receiver_field)
|
|
(binary)
|
|
(block)
|
|
(bounds)
|
|
(call)
|
|
(cast)
|
|
(class)
|
|
(class_pattern)
|
|
(compound_assign_field)
|
|
(compound_assign_local)
|
|
(compound_assign_receiver_field)
|
|
(define_constant)
|
|
(define_variable)
|
|
(grouped_expression)
|
|
(implement_trait)
|
|
(match)
|
|
(or_pattern)
|
|
(reopen_class)
|
|
(replace_field)
|
|
(replace_local)
|
|
(symbols)
|
|
(trait)
|
|
(tuple)
|
|
(tuple_pattern)
|
|
(type_arguments)
|
|
] @indent.begin
|
|
|
|
[
|
|
")"
|
|
"]"
|
|
"}"
|
|
] @indent.end @indent.branch
|
|
|
|
(line_comment) @indent.auto
|
|
|
|
(string) @indent.auto
|