Skip to content

Commit 0481983

Browse files
committed
Fix indentation behaviour of preprocessor statements.
Unit-tests. This fixes #139.
1 parent 239527c commit 0481983

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

csharp-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2934,7 +2934,7 @@ Otherwise run `c-inside-bracelist-p'."
29342934
(class-close . 0)
29352935
(class-open . 0)
29362936
(comment-intro . c-lineup-comment)
2937-
(cpp-macro . 0)
2937+
(cpp-macro . [0])
29382938
(cpp-macro-cont . c-lineup-dont-change)
29392939
(defun-block-intro . +)
29402940
(defun-close . 0)

test-files/indentation-tests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,10 @@ public void CaseStamentIndentation()
188188
}
189189
}
190190
}
191+
192+
public class NestedPreProcessor
193+
{
194+
#if DEBUG
195+
public static bool Debug = true;
196+
#endif
197+
}

0 commit comments

Comments
 (0)