nvim-treesitter/queries/inko/indents.scm
Yorick Peterse 9e1cda4e71 fix(inko): indent call nodes
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
2024-05-09 00:33:22 -04:00

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