From b46e75b6caf0dda71edf0112c4f8a2ee12f76872 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jostein=20Kj=C3=B8nigsen?= Date: Fri, 25 Apr 2025 15:29:31 +0200 Subject: [PATCH] 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) --- lisp/progmodes/csharp-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5