emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode 0481983 264/459: Fix indentation behaviour


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 0481983 264/459: Fix indentation behaviour of preprocessor statements.
Date: Sun, 22 Aug 2021 13:59:41 -0400 (EDT)

branch: externals/csharp-mode
commit 0481983b3435df94d0e98f23a298941a5d693feb
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    Fix indentation behaviour of preprocessor statements.
    
    Unit-tests.
    
    This fixes #139.
---
 csharp-mode.el                  | 2 +-
 test-files/indentation-tests.cs | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index 06b62d8..e61b11e 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -2934,7 +2934,7 @@ Otherwise run `c-inside-bracelist-p'."
                                    (class-close           . 0)
                                    (class-open            . 0)
                                    (comment-intro         . c-lineup-comment)
-                                   (cpp-macro             . 0)
+                                   (cpp-macro             . [0])
                                    (cpp-macro-cont        . 
c-lineup-dont-change)
                                    (defun-block-intro     . +)
                                    (defun-close           . 0)
diff --git a/test-files/indentation-tests.cs b/test-files/indentation-tests.cs
index 199f936..11ac6db 100644
--- a/test-files/indentation-tests.cs
+++ b/test-files/indentation-tests.cs
@@ -188,3 +188,10 @@ namespace Boo
         }
     }
 }
+
+public class NestedPreProcessor
+{
+#if DEBUG
+    public static bool Debug = true;
+#endif
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]