Tweak regexp for object initializers in csharp-mode (bug#69571)
authorTheodor Thornhill <theo@thornhill.no>
Sat, 16 Mar 2024 19:28:10 +0000 (20:28 +0100)
committerTheodor Thornhill <theo@thornhill.no>
Sat, 16 Mar 2024 19:43:25 +0000 (20:43 +0100)
commitc890622e1a9ae6f2ab5d083ca8b668c9228c52fa
tree0a4445626e96ae1c472f7fcf3ebefd521594cdd7
parentf48babb1120343f211367a1b5854dc7740c3091d
Tweak regexp for object initializers in csharp-mode (bug#69571)

* 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.
lisp/progmodes/csharp-mode.el
test/lisp/progmodes/csharp-mode-resources/indent.erts [new file with mode: 0644]
test/lisp/progmodes/csharp-mode-tests.el [new file with mode: 0644]