nvim-treesitter/queries/pony/indents.scm

72 lines
916 B
Scheme
Raw Normal View History

2023-03-26 18:28:54 -04:00
[
2024-01-06 15:05:50 +09:00
(use_statement)
2023-03-26 18:28:54 -04:00
(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
2024-01-06 15:05:50 +09:00
(try_statement
(block) @indent.begin)
2023-03-26 18:28:54 -04:00
2024-01-06 15:05:50 +09:00
(repeat_statement
(block) @indent.begin)
2023-03-26 18:28:54 -04:00
2024-01-06 15:05:50 +09:00
(recover_statement
(block) @indent.begin)
2023-03-26 18:28:54 -04:00
2024-01-06 15:05:50 +09:00
(return_statement
(block) @indent.begin)
2023-03-26 18:28:54 -04:00
2024-01-06 15:05:50 +09:00
(continue_statement
(block) @indent.begin)
2023-03-26 18:28:54 -04:00
2024-01-06 15:05:50 +09:00
(break_statement
(block) @indent.begin)
2023-03-26 18:28:54 -04:00
[
"}"
"]"
")"
] @indent.end
2024-01-06 15:05:50 +09:00
[
"{"
"}"
] @indent.branch
2023-03-26 18:28:54 -04:00
2024-01-06 15:05:50 +09:00
[
"["
"]"
] @indent.branch
2023-03-26 18:28:54 -04:00
2024-01-06 15:05:50 +09:00
[
"("
")"
] @indent.branch
2023-03-26 18:28:54 -04:00
[
(ERROR)
(string)
(line_comment)
(block_comment)
] @indent.auto