branch: externals/csharp-mode commit 8fdeedf923137a165bcc1ac82d97f0f4dad49ecf Author: Theodor Thornhill <t...@thornhill.no> Commit: Theodor Thornhill <t...@thornhill.no>
Indentation tweaking --- csharp-mode-indent.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/csharp-mode-indent.el b/csharp-mode-indent.el index 0661032..f9a81a4 100644 --- a/csharp-mode-indent.el +++ b/csharp-mode-indent.el @@ -37,11 +37,13 @@ '((indent-all . ;; these nodes are always indented (accessor_declaration break_statement - conditional_expression arrow_expression_clause + parameter_list + conditional_expression ".")) (indent-rest . ;; if parent node is one of these and node is not first → indent ( + binary_expression switch_section )) (indent-body . ;; if parent node is one of these and current node is in middle → indent @@ -52,7 +54,6 @@ expression_statement declaration_list attribute_argument_list - parameter_list switch_body)) (paren-indent . ;; if parent node is one of these → indent to paren opener