From: Jostein Kjønigsen Date: Fri, 25 Apr 2025 13:29:31 +0000 (+0200) Subject: Fix compilation-mode matches for csharp-mode (bug#78128) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b46e75b6caf0dda71edf0112c4f8a2ee12f76872;p=emacs.git Fix compilation-mode matches for csharp-mode (bug#78128) * lisp/progmodes/csharp-mode.el: (csharp-compilation-re-dotnet-error): (csharp-compilation-re-dotnet-warning): Ignore leading whitespace. (cherry picked from commit ebeaa728b66d0674fa499bf0bf2ae573ec9984aa) --- diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el index e002391d305..bba7cf681e9 100644 --- a/lisp/progmodes/csharp-mode.el +++ b/lisp/progmodes/csharp-mode.el @@ -584,10 +584,10 @@ compilation and evaluation time conflicts." "Regexp to match compilation warning from xbuild.") (defconst csharp-compilation-re-dotnet-error - "\\([^\r\n]+\\) : error [A-Z]+[0-9]+:") + "[[:blank:]]*\\([^\r\n]+\\) : error [A-Z]+[0-9]+:") (defconst csharp-compilation-re-dotnet-warning - "\\([^\r\n]+\\) : warning [A-Z]+[0-9]+:") + "[[:blank:]]*\\([^\r\n]+\\) : warning [A-Z]+[0-9]+:") (defconst csharp-compilation-re-dotnet-testfail (concat