[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode baef28a 072/459: fix error highlighting and
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode baef28a 072/459: fix error highlighting and use filename functions |
Date: |
Sun, 22 Aug 2021 13:58:59 -0400 (EDT) |
branch: externals/csharp-mode
commit baef28a6014948c293316156bf2e410f9826bfad
Author: jesse_black <jesse.w.black@gmail.com>
Commit: jesse_black <jesse.w.black@gmail.com>
fix error highlighting and use filename functions
---
csharp-mode.el | 37 +++++++++++++++++++++++++++++--------
1 file changed, 29 insertions(+), 8 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index a691d80..116c8b5 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -4138,20 +4138,41 @@ The return value is meaningless, and is ignored by
cc-mode.
;;; Compilation regexps
;; When invoked by MSBuild, csc’s errors look like this:
-;; subfolder\file.cs(6,18): error CS1006: Name of constructor must match name
of class [c:\Users\user\project.csproj]
-(defun csharp-compilation-error-file-resolve ()
+;; subfolder\file.cs(6,18): error CS1006: Name of constructor must
+;; match name of class [c:\Users\user\project.csproj]
+
+(defun csharp--compilation-error-file-resolve ()
;; http://stackoverflow.com/a/18049590/429091
- (cons (match-string 1) (match-string 4)))
+ (expand-file-name (match-string 1) (file-name-directory (match-string 4))))
+
(eval-after-load 'compile
(lambda ()
(dolist
(regexp
- '((msbuild-error
- "^[[:blank:]]*\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?):
error .+?\\(?:\\[\\([^[\r\n]+\\)[\\\\/][^\\\\/]+\\]\\)$"
- csharp-compilation-error-file-resolve 2 3 2)
+ `((msbuild-error
+ ,(concat
+ "^[[:blank:]]*"
+ "\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
+ "error [[:alnum:]]+: .+ \\[\\([^]\r\n]+\\)\\]$")
+ csharp--compilation-error-file-resolve
+ 2
+ 3
+ 2
+ nil
+ (1 compilation-error-face)
+ (4 compilation-error-face))
(msbuild-warning
- "^[[:blank:]]*\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?):
warning .+?\\(?:\\[\\([^[\r\n]+\\)[\\\\/][^\\\\/]+\\]\\)$"
- csharp-compilation-error-file-resolve 2 3 1)))
+ ,(concat
+ "^[[:blank:]]*"
+ "\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
+ "warning [[:alnum:]]+: .+ \\[\\([^]\r\n]+\\)\\]$")
+ csharp--compilation-error-file-resolve
+ 2
+ 3
+ 1
+ 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))))
- [elpa] externals/csharp-mode a182957 112/459: Update changelog., (continued)
- [elpa] externals/csharp-mode a182957 112/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 03e6200 109/459: Emacs: Tentative fix for fontification issues., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 64eb7db 114/459: Merge pull request #47 from josteink/feature-cl-lib, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 165a128 028/459: Update maintainer-ship and new repo-URL., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ac6a1ff 036/459: Don't package stuff we only need for the build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f000c97 037/459: Add link to Travis., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0762f78 038/459: remove the debug (message "Loading ...") forms, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 49d213a 045/459: Remove csharp-insert-open-brace. Recommend electric-pair-mode instead., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3af278a 070/459: Parse the base directory from MSBuild to support finding errors in dependency projects., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e73ad4e 071/459: Merge pull request #30 from binki/compilation-regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode baef28a 072/459: fix error highlighting and use filename functions,
ELPA Syncer <=
- [elpa] externals/csharp-mode 2303fe0 074/459: Add msbuild and xbuild log-files for ERT-testing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 69eaa1a 080/459: Add tests for compilation-mode regexps., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7ef0c5c 032/459: Configure travis-build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2fe1a72 033/459: Fix error in path in makefile., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3d0f86b 043/459: Updated readme., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fff8cb1 053/459: Merge branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 689dd8b 056/459: make c# style the default style, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 421d3de 062/459: remove aspx code, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 962478e 057/459: Merge branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2d13a9c 058/459: Add very broad build-level test., ELPA Syncer, 2021/08/22