nvim-treesitter/runtime/queries/go/indents.scm

49 lines
677 B
Scheme
Raw Permalink 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)
2024-07-05 21:48:45 +09:00
(field_declaration_list)
(interface_type)
] @indent.begin
2021-01-05 19:26:08 +07:00
2024-07-05 21:48:45 +09:00
(literal_value
"}" @indent.branch)
(block
"}" @indent.branch)
(field_declaration_list
"}" @indent.branch)
(interface_type
"}" @indent.branch)
2024-01-06 15:05:50 +09:00
(const_declaration
")" @indent.branch)
2024-01-06 15:05:50 +09:00
(import_spec_list
")" @indent.branch)
(var_spec_list
2024-01-06 15:05:50 +09:00
")" @indent.branch)
2022-04-16 10:53:22 +01:00
[
2024-01-06 15:05:50 +09:00
"}"
")"
] @indent.end
2022-04-16 10:53:22 +01:00
2024-01-06 15:05:50 +09:00
(parameter_list
")" @indent.branch)
(comment) @indent.ignore