branch: externals/csharp-mode
commit a90b87577a117cc6275bd3cdf5c3603c3e80849b
Author: Theodor Thornhill <t...@thornhill.no>
Commit: Theodor Thornhill <t...@thornhill.no>

    Add yield and object init indentation rules
---
 csharp-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index fa4ffbb..12530ee 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -179,6 +179,7 @@ Key bindings:
                         class_declaration
                         method_declaration
                         object_creation_expression
+                        anonymous_object_creation_expression
                         for_each_statement
                         if_statement))
           (indent-body . ;; if parent node is one of these and current node is 
in middle → indent
@@ -209,7 +210,7 @@ Key bindings:
          ["using" "namespace" "class" "if" "else" "throw" "new" "for"
           "return" "await" "struct" "enum" "switch" "case"
           "default" "typeof" "try" "catch" "finally"
-          "foreach" "in"
+          "foreach" "in" "yield"
           ] @keyword
          ;; Literals
          [(real_literal) (integer_literal)] @number

Reply via email to