]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation-mode matches for csharp-mode (bug#78128)
authorJostein Kjønigsen <jostein@kjonigsen.net>
Fri, 25 Apr 2025 13:29:31 +0000 (15:29 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 06:52:45 +0000 (08:52 +0200)
* 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

index e002391d3057129c360bf253d4b6f20c42f707c6..bba7cf681e9f5525a22dd37707433a700d8bf78a 100644 (file)
@@ -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