[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 31eebb9 079/459: create separate compilatio
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 31eebb9 079/459: create separate compilation regexps for xbuild |
Date: |
Sun, 22 Aug 2021 13:59:00 -0400 (EDT) |
branch: externals/csharp-mode
commit 31eebb9f2c945e690b084c7fa70731fe9629295b
Author: jesse_black <jesse.w.black@gmail.com>
Commit: jesse_black <jesse.w.black@gmail.com>
create separate compilation regexps for xbuild
---
csharp-mode.el | 51 +++++++++++++++++++++++++++++++--------------------
1 file changed, 31 insertions(+), 20 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index 69afa61..2975c20 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -4145,34 +4145,46 @@ The return value is meaningless, and is ignored by
cc-mode.
;; http://stackoverflow.com/a/18049590/429091
(cons (match-string 1) (file-name-directory (match-string 4))))
-(defconst csharp-compilation-re-build-error
+(defconst csharp-compilation-re-msbuild-error
(concat
"^[[:blank:]]*"
"\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
- "error [[:alnum:]]+: [^[\r\n]+\\(?:\\[\\([^]\r\n]+\\)\\]\\)?$")
- ;; docstring
- "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'
-"
-)
+ "error [[:alnum:]]+: [^[\r\n]+\\[\\([^]\r\n]+\\)\\]$")
+ "Regexp to match compilation error from msbuild.")
-(defconst csharp-compilation-re-build-warning
+(defconst csharp-compilation-re-msbuild-warning
(concat
"^[[:blank:]]*"
"\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
- "warning [[:alnum:]]+: [^[\r\n]+\\(?:\\[\\([^]\r\n]+\\)\\]\\)?$")
- ;; docstring
- "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
-"
- )
+ "warning [[:alnum:]]+: [^[\r\n]+\\[\\([^]\r\n]+\\)\\]$")
+ "Regexp to match compilation warning from msbuild.")
+
+(defconst csharp-compilation-re-xbuild-error
+ (concat
+ "^[[:blank:]]*"
+ "\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
+ "error [[:alnum:]]+: .+$")
+ "Regexp to match compilation error from xbuild.")
+
+(defconst csharp-compilation-re-xbuild-warning
+ (concat
+ "^[[:blank:]]*"
+ "\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
+ "warning [[:alnum:]]+: .+$")
+ "Regexp to match compilation warning from xbuild.")
(eval-after-load 'compile
(lambda ()
(dolist
(regexp
- `((msbuild-error
- ,csharp-compilation-re-build-error
+ `((xbuild-error
+ ,csharp-compilation-re-xbuild-error
+ 1 2 3 2)
+ (xbuild-warning
+ ,csharp-compilation-re-xbuild-warning
+ 1 2 3 1)
+ (msbuild-error
+ ,csharp-compilation-re-msbuild-error
csharp--compilation-error-file-resolve
2
3
@@ -4181,7 +4193,7 @@ The return value is meaningless, and is ignored by
cc-mode.
(1 compilation-error-face)
(4 compilation-error-face))
(msbuild-warning
- ,csharp-compilation-re-build-warning
+ ,csharp-compilation-re-msbuild-warning
csharp--compilation-error-file-resolve
2
3
@@ -4189,9 +4201,8 @@ The return value is meaningless, and is ignored by
cc-mode.
nil
(1 compilation-warning-face)
(4 compilation-warning-face))))
- (add-to-list 'compilation-error-regexp-alist-alist regexp))
- (dolist (symbol '(msbuild-error msbuild-warning))
- (add-to-list 'compilation-error-regexp-alist symbol))))
+ (add-to-list 'compilation-error-regexp-alist-alist regexp)
+ (add-to-list 'compilation-error-regexp-alist (car regexp)))))
;;; Autoload mode trigger
;;;###autoload
- [elpa] externals/csharp-mode 723341b 067/459: Fix incorrect-code tags in readme., (continued)
- [elpa] externals/csharp-mode 723341b 067/459: Fix incorrect-code tags in readme., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a86839b 064/459: Merged from master., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0a2a3b0 066/459: Fix Emacs-lockup during fontification., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f2fda33 041/459: Fix errors in `make package`., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a6eb8bd 047/459: Merge changes from branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 6289cfd 051/459: Fix broken byte-compile., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1f2fc21 055/459: Remove obsolete workarounds from README., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d7ba765 063/459: Merge changes from devel., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ed628e6 075/459: Attempt fix compilation-mode regexps for both xbuild & msbuild., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3c2f942 087/459: Merge pull request #34 from binki/master, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 31eebb9 079/459: create separate compilation regexps for xbuild,
ELPA Syncer <=
- [elpa] externals/csharp-mode 42ca773 097/459: Fix runtime warnings about obsolete Emacs-functions., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0779fe4 107/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1f0465b 126/459: Fix comments, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 6efd459 127/459: Stylistic fixes, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3b54997 130/459: Merge pull request #55 from josteink/derive-from-prog-mode, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a553430 146/459: Merge pull request #66 from shoover/explicit-interface-property, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 157299a 013/459: Update TFS module., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3651a40 119/459: Use cl-lib equivalent, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 91fff08 124/459: Fontify conversion operators definitions. Fontify base interfaces names for 'interface' and 'struct' declarations., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9e78a26 128/459: Derive from prog-mode, ELPA Syncer, 2021/08/22