mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
48
runtime/queries/go/indents.scm
Normal file
48
runtime/queries/go/indents.scm
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
[
|
||||
(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)
|
||||
(field_declaration_list)
|
||||
(interface_type)
|
||||
] @indent.begin
|
||||
|
||||
(literal_value
|
||||
"}" @indent.branch)
|
||||
|
||||
(block
|
||||
"}" @indent.branch)
|
||||
|
||||
(field_declaration_list
|
||||
"}" @indent.branch)
|
||||
|
||||
(interface_type
|
||||
"}" @indent.branch)
|
||||
|
||||
(const_declaration
|
||||
")" @indent.branch)
|
||||
|
||||
(import_spec_list
|
||||
")" @indent.branch)
|
||||
|
||||
(var_spec_list
|
||||
")" @indent.branch)
|
||||
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
] @indent.end
|
||||
|
||||
(parameter_list
|
||||
")" @indent.branch)
|
||||
|
||||
(comment) @indent.ignore
|
||||
Loading…
Add table
Add a link
Reference in a new issue