mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
indents(c): indent always after init_declarator
This commit is contained in:
parent
ff96940767
commit
dccf0f0cb8
1 changed files with 1 additions and 6 deletions
|
|
@ -7,7 +7,6 @@
|
||||||
(struct_specifier)
|
(struct_specifier)
|
||||||
(compound_literal_expression)
|
(compound_literal_expression)
|
||||||
(initializer_list)
|
(initializer_list)
|
||||||
(concatenated_string)
|
|
||||||
(while_statement)
|
(while_statement)
|
||||||
(for_statement)
|
(for_statement)
|
||||||
(switch_statement)
|
(switch_statement)
|
||||||
|
|
@ -18,11 +17,7 @@
|
||||||
consequence: (_) @_consequence
|
consequence: (_) @_consequence
|
||||||
(#not-has-type? @_consequence compound_statement)
|
(#not-has-type? @_consequence compound_statement)
|
||||||
) @indent)
|
) @indent)
|
||||||
(init_declarator
|
(init_declarator) @indent
|
||||||
value: [
|
|
||||||
(binary_expression)
|
|
||||||
(conditional_expression)
|
|
||||||
] @indent)
|
|
||||||
|
|
||||||
(compound_statement "}" @indent_end)
|
(compound_statement "}" @indent_end)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue