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

34 lines
509 B
Scheme

[
(import_declaration)
(const_declaration)
(var_declaration)
(type_declaration)
(func_literal)
(literal_value)
(expression_case)
(communication_case)
(type_case)
(default_case)
(block)
(call_expression)
(parameter_list)
(struct_type)
] @indent.begin
[
"}"
] @indent.branch
(const_declaration ")" @indent.branch)
(import_spec_list ")" @indent.branch)
(var_declaration ")" @indent.branch)
[
"}"
")"
] @indent.end
(parameter_list ")" @indent.branch)
(comment) @indent.ignore