nvim-treesitter/queries/java/indents.scm

35 lines
385 B
Scheme
Raw Normal View History

2021-02-20 18:28:10 +07:00
[
(class_body)
(enum_body)
(interface_body)
2021-02-20 18:28:10 +07:00
(constructor_declaration)
(constructor_body)
(block)
(switch_block)
(array_initializer)
(argument_list)
(formal_parameters)
2021-02-20 18:28:10 +07:00
] @indent
(expression_statement (method_invocation) @indent)
2021-02-20 18:28:10 +07:00
[
"("
")"
"{"
"}"
"["
"]"
] @branch
[
"}"
] @indent_end
(line_comment) @ignore
[
(ERROR)
(block_comment)
] @auto