nvim-treesitter/queries/java/indents.scm
Daniel Woznicki 3d6f2637a2 Made block comment indent @auto so that new lines line up nicely with existing comment block
Previous indentation:
    /**
    *
    */

    New indentation:
    /**
     *
     */
2022-03-01 21:12:14 +01:00

33 lines
339 B
Scheme

[
(class_body)
(enum_body)
(interface_body)
(constructor_declaration)
(constructor_body)
(block)
(switch_block)
(array_initializer)
(argument_list)
(formal_parameters)
] @indent
[
"("
")"
"{"
"}"
"["
"]"
] @branch
[
"}"
")"
] @indent_end
(line_comment) @ignore
[
(ERROR)
(block_comment)
] @auto