]> git.eshelyaron.com Git - emacs.git/commit
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)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:12:15 +0000 (15:12 +0100)
commitdfea05eb154d977da01cd678f03750bade18d997
tree83a47ba975c35920e44d261c17096b99d1d39851
parent4da19fed189b11d5bb4920a3cb494c1ec4cc876d
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.

(cherry picked from commit c890622e1a9ae6f2ab5d083ca8b668c9228c52fa)
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]