1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:20:06 +08:00
SpaceVim/bundle/nvim-treesitter/queries/pony/indents.scm

61 lines
897 B
Scheme

[
(use_statement)
(actor_definition)
(class_definition)
(primitive_definition)
(interface_definition)
(trait_definition)
(struct_definition)
(constructor)
(method)
(behavior)
(parameters)
(if_block)
(then_block)
(elseif_block)
(else_block)
(iftype_statement)
(elseiftype_block)
(do_block)
(match_statement)
(parenthesized_expression)
(tuple_expression)
(array_literal)
(object_literal)
] @indent.begin
(try_statement (block) @indent.begin)
(repeat_statement (block) @indent.begin)
(recover_statement (block) @indent.begin)
(return_statement (block) @indent.begin)
(continue_statement (block) @indent.begin)
(break_statement (block) @indent.begin)
[
"}"
"]"
")"
] @indent.end
[ "{" "}" ] @indent.branch
[ "[" "]" ] @indent.branch
[ "(" ")" ] @indent.branch
[
(ERROR)
(string)
(line_comment)
(block_comment)
] @indent.auto