[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode e7e96e3 272/459: Fixed callback indentation
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode e7e96e3 272/459: Fixed callback indentation level. (#145) |
Date: |
Sun, 22 Aug 2021 13:59:42 -0400 (EDT) |
branch: externals/csharp-mode
commit e7e96e3b0cb69d98b4e12eda269719c9b23453ed
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Fixed callback indentation level. (#145)
* Add test for callback.
* Add test case with param.
---
csharp-mode.el | 2 +-
test-files/indentation-tests.cs | 19 +++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index fc9cac5..4e0c088 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -2946,7 +2946,7 @@ Otherwise run `c-inside-bracelist-p'."
(friend . 0)
(func-decl-cont . +)
(inclass . +)
- (inexpr-class . +)
+ (inexpr-class . 0)
(inexpr-statement . 0)
(inextern-lang . +)
(inher-cont .
c-lineup-multi-inher)
diff --git a/test-files/indentation-tests.cs b/test-files/indentation-tests.cs
index 838548b..4c32a5a 100644
--- a/test-files/indentation-tests.cs
+++ b/test-files/indentation-tests.cs
@@ -159,6 +159,25 @@ namespace Boo
{
System.Console.WriteLine("boo");
}
+
+ /* Callback indentation test. */
+ SomeFunction(() => {
+ // empty.
+ });
+
+ SomeFunction(() =>
+ {
+ // empty.
+ });
+
+ SomeFunction((withParam) => {
+ // empty.
+ });
+
+ SomeFunction((withParam) =>
+ {
+ // empty.
+ });
}
public void CaseStamentIndentation()
- [elpa] externals/csharp-mode b20e65f 249/459: communicate default style safely (#118), (continued)
- [elpa] externals/csharp-mode b20e65f 249/459: communicate default style safely (#118), ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 29dab33 255/459: Silence warning in compatibility-shim., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0481983 264/459: Fix indentation behaviour of preprocessor statements., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4babfff 265/459: Merge branch 'preproc-indentation', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8100976 267/459: Fix fontification of unsafe methods., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 68a8a69 270/459: Fixed enum indentation level., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0825112 276/459: Fix CI-error on Emacs 25.x, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d537cfa 271/459: Add test-case for Enum-indentation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 981ff38 275/459: Make it easier to reproduce CI errors locally., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 274dd88 273/459: Update CI-settings, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e7e96e3 272/459: Fixed callback indentation level. (#145),
ELPA Syncer <=
- [elpa] externals/csharp-mode 85d36e1 280/459: Fix lambda indentation #105, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4885177 286/459: Merge pull request #161 from ryuslash/fix-package-fontification, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5a9c8eb 287/459: Merge pull request #159 from ronnieholm/master, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f640019 285/459: Fix display of ‘package’ as any sort of name, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7cb8d05 288/459: Update CI settings:, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 44740eb 282/459: Fix font lock breaks on strings #151, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f6314e5 295/459: Merge pull request #166 from josteink/rework, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode da8eab4 290/459: const is a modifier, not a type., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5a7828f 298/459: Add xml like doc comments font locking, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e0a2975 296/459: This is clearly a new version! Lets make it 0.10.0, ELPA Syncer, 2021/08/22