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.
This commit is contained in:
Jostein Kjønigsen
2025-04-25 15:29:31 +02:00
committed by Yuan Fu
parent eb6a50d3e3
commit ebeaa728b6

View File

@@ -591,10 +591,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