mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
* lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax): Add handling to not consider ended statements as object init openers. * test/lisp/progmodes/csharp-mode-resources/indent.erts: New test resources. * test/lisp/progmodes/csharp-mode-tests.el: Add test for this particular issue.
19 lines
326 B
Text
19 lines
326 B
Text
Code:
|
|
(lambda ()
|
|
(csharp-mode)
|
|
(indent-region (point-min) (point-max)))
|
|
|
|
Point-Char: |
|
|
|
|
Name: Don't consider closed statements as object initializers. (bug#69571)
|
|
|
|
=-=
|
|
public class Foo {
|
|
void Bar () {
|
|
var x = new X(); // [1]
|
|
for (;;) {
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
=-=-=
|