nvim-treesitter/queries/java/indents.scm

33 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_body)
(block)
(switch_block)
(array_initializer)
(argument_list)
(formal_parameters)
] @indent.begin
2021-02-20 18:28:10 +07:00
(expression_statement (method_invocation) @indent.begin)
2021-02-20 18:28:10 +07:00
[
"("
")"
"{"
"}"
"["
"]"
] @indent.branch
"}" @indent.end
(line_comment) @indent.ignore
[
(ERROR)
(block_comment)
] @indent.auto