1
0
Fork 0

nvim: ts c# indent

This commit is contained in:
Vladimír Dudr 2023-04-28 12:34:38 +02:00
parent a5d0bb89b0
commit 5371774e0d

View file

@ -22,6 +22,7 @@
(unsafe_statement)
(labeled_statement)
(for_each_statement)
(for_statement)
(if_statement)
(switch_expression)
(switch_section)
@ -32,6 +33,8 @@
(checked_statement)
(try_statement)
(using_statement)
(local_function_statement)
(object_creation_expression)
] @indent.begin
@ -42,10 +45,10 @@
(struct_declaration body: _ @indent.begin)
(constructor_declaration body: _ @indent.begin)
(interface_declaration body: _ @indent.begin)
(enum_declaration body: _ @indent.begin)
(switch_section
(case_switch_label) (case_switch_label) @indent.branch
)
(case_switch_label) (case_switch_label) @indent.branch)
(if_statement (block "{" @indent.branch))
@ -54,9 +57,15 @@
(while_statement
(block "{" @indent.branch))
(object_creation_expression
(initializer_expression "{" @indent.branch))
(for_each_statement
body: (block "{" @indent.branch))
(for_statement
body: (block "{" @indent.branch))
(switch_expression "{" @indent.branch)
(switch_statement
@ -79,6 +88,11 @@
["}" ")" "]" ] @indent.end
(expression_statement ";" @indent.end)
(local_function_statement ";" @indent.end)
(local_declaration_statement ";" @indent.end)
[
(if_directive)
(else_directive)