nvim-treesitter/queries/go/indents.scm

34 lines
509 B
Scheme
Raw Normal View History

2021-01-05 19:26:08 +07:00
[
(import_declaration)
(const_declaration)
(var_declaration)
(type_declaration)
(func_literal)
(literal_value)
(expression_case)
(communication_case)
(type_case)
(default_case)
2021-01-05 19:26:08 +07:00
(block)
(call_expression)
(parameter_list)
(struct_type)
] @indent.begin
2021-01-05 19:26:08 +07:00
[
"}"
] @indent.branch
(const_declaration ")" @indent.branch)
(import_spec_list ")" @indent.branch)
(var_declaration ")" @indent.branch)
2022-04-16 10:53:22 +01:00
[
"}"
")"
] @indent.end
2022-04-16 10:53:22 +01:00
(parameter_list ")" @indent.branch)
(comment) @indent.ignore