[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode eb3e9de 385/459: Almost functional indentat
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode eb3e9de 385/459: Almost functional indentation |
Date: |
Sun, 22 Aug 2021 14:00:06 -0400 (EDT) |
branch: externals/csharp-mode
commit eb3e9deeeffe5e0223f61e20b0be8965343f1aff
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@thornhill.no>
Almost functional indentation
---
csharp-mode.el | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index 12530ee..bf3fb3f 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -173,13 +173,19 @@ Key bindings:
\\{csharp-mode-map}"
(setq tree-sitter-indent-csharp-scopes
'((indent-all . ;; these nodes are always indented
- ())
+ (anonymous_object_creation_expression
+ switch_body
+ switch_section))
(indent-rest . ;; if parent node is one of these and node is not
first → indent
(namespace_declaration
+ using_statement
class_declaration
method_declaration
object_creation_expression
- anonymous_object_creation_expression
+ array_creation_expression
+ lambda_expression
+ local_function_statement
+ enum_declaration
for_each_statement
if_statement))
(indent-body . ;; if parent node is one of these and current node is
in middle → indent
@@ -209,8 +215,8 @@ Key bindings:
(this_expression) @keyword
["using" "namespace" "class" "if" "else" "throw" "new" "for"
"return" "await" "struct" "enum" "switch" "case"
- "default" "typeof" "try" "catch" "finally"
- "foreach" "in" "yield"
+ "default" "typeof" "try" "catch" "finally" "break"
+ "foreach" "in" "yield" "get" "set"
] @keyword
;; Literals
[(real_literal) (integer_literal)] @number
@@ -268,7 +274,6 @@ Key bindings:
;; Class
(base_list (identifier) @type)
- (accessor_declaration) @keyword
(property_declaration
type: (identifier) @type
name: (identifier) @variable)
- [elpa] externals/csharp-mode 5b3eb9a 364/459: Really, really RIP travis, (continued)
- [elpa] externals/csharp-mode 5b3eb9a 364/459: Really, really RIP travis, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4916829 365/459: Update README.org, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7d0cfaa 367/459: Fix incorrectly commited code!, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 998a022 371/459: Strings, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b27a3e4 373/459: More highlighting, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9a9c92a 374/459: Many, many more things, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 658adb2 376/459: Add support for namespace-declarations., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 11d92b9 379/459: Various fixes, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 58928af 383/459: Indent object creation expression, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a90b875 384/459: Add yield and object init indentation rules, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode eb3e9de 385/459: Almost functional indentation,
ELPA Syncer <=
- [elpa] externals/csharp-mode 512c858 386/459: Start extracting defcustoms, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f94e5a7 387/459: More extracting, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 323a028 388/459: More cleaning, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 84a5daa 389/459: Should not need to autoload c_sharp, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4651004 391/459: Hassle with the defcustoms, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5ac7484 392/459: Add back better support for interfaces, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4eef364 394/459: Absorb tree-sitter-indent, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8fdeedf 397/459: Indentation tweaking, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3d0b60c 399/459: Add a little documentation, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0de2bbc 400/459: Fix byte compilation errors, ELPA Syncer, 2021/08/22