emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode ed628e6 075/459: Attempt fix compilation-mo


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode ed628e6 075/459: Attempt fix compilation-mode regexps for both xbuild & msbuild.
Date: Sun, 22 Aug 2021 13:58:59 -0400 (EDT)

branch: externals/csharp-mode
commit ed628e6dd5611935cc38492c834a1fc718345948
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    Attempt fix compilation-mode regexps for both xbuild & msbuild.
---
 csharp-mode.el | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index d42aacf..68a548f 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -4146,16 +4146,22 @@ The return value is meaningless, and is ignored by 
cc-mode.
   (expand-file-name (match-string 1) (file-name-directory (match-string 4))))
 
 (defconst csharp-compilation-re-build-error
+  "Regexp to match compilation error from xbuild/msbuild-logs like this:
+       
/Users/jesseblack/Dropbox/barfapp/ConsoleApplication1/ClassLibrary1/Folder/Class1.cs(12):
 error CS1525: Unexpected symbol `}', expecting `;', `{', `=>', or `where'
+"
   (concat
    "^[[:blank:]]*"
-   "\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
-   "error [[:alnum:]]+: .+ \\[\\([^]\r\n]+\\)\\]$"))
+   "\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
+   "error [[:alnum:]]+: .+ ?\\(\\[\\([^]\r\n]+\\)\\]\\)?$"))
 
 (defconst csharp-compilation-re-build-warning
+  "Regexp to match compilation warning from xbuild/msbuild-logs like this:
+       
/Users/jesseblack/Dropbox/barfapp/ConsoleApplication1/ClassLibrary1/Class1.cs(11):
 warning CS0169: The private field `ClassLibrary1.Class1.BadImageFormatExcep' 
is never used
+"
   (concat
    "^[[:blank:]]*"
-   "\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
-   "warning [[:alnum:]]+: .+ \\[\\([^]\r\n]+\\)\\]$"))
+   "\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
+   "warning [[:alnum:]]+: .+ ?\\(\\[\\([^]\r\n]+\\)\\]\\)?$"))
 
 (eval-after-load 'compile
   (lambda ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]