[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 1939c4e 073/459: Extract compilation-mode r
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 1939c4e 073/459: Extract compilation-mode regexps into constants. |
Date: |
Sun, 22 Aug 2021 13:58:59 -0400 (EDT) |
branch: externals/csharp-mode
commit 1939c4ebc414295179d8e8a981b93bc6554f9cd3
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Extract compilation-mode regexps into constants.
This allows us to reuse them in unit-tests.
---
csharp-mode.el | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index 116c8b5..d42aacf 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -4145,15 +4145,24 @@ The return value is meaningless, and is ignored by
cc-mode.
;; http://stackoverflow.com/a/18049590/429091
(expand-file-name (match-string 1) (file-name-directory (match-string 4))))
+(defconst csharp-compilation-re-build-error
+ (concat
+ "^[[:blank:]]*"
+ "\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
+ "error [[:alnum:]]+: .+ \\[\\([^]\r\n]+\\)\\]$"))
+
+(defconst csharp-compilation-re-build-warning
+ (concat
+ "^[[:blank:]]*"
+ "\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
+ "warning [[:alnum:]]+: .+ \\[\\([^]\r\n]+\\)\\]$"))
+
(eval-after-load 'compile
(lambda ()
(dolist
(regexp
`((msbuild-error
- ,(concat
- "^[[:blank:]]*"
- "\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
- "error [[:alnum:]]+: .+ \\[\\([^]\r\n]+\\)\\]$")
+ csharp-compilation-re-build-error
csharp--compilation-error-file-resolve
2
3
@@ -4162,10 +4171,7 @@ The return value is meaningless, and is ignored by
cc-mode.
(1 compilation-error-face)
(4 compilation-error-face))
(msbuild-warning
- ,(concat
- "^[[:blank:]]*"
- "\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
- "warning [[:alnum:]]+: .+ \\[\\([^]\r\n]+\\)\\]$")
+ csharp-compilation-re-build-warning
csharp--compilation-error-file-resolve
2
3
- [elpa] externals/csharp-mode b2d8fba 049/459: Merge branch 'devel', (continued)
- [elpa] externals/csharp-mode b2d8fba 049/459: Merge branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7438762 050/459: Update instructions in README., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3050139 060/459: Add fontification-test., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5ce7809 068/459: add compilation regexps for msbuild for #28, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e4ce203 065/459: Updated readme., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7805fe8 077/459: Fix const-declaration for compilation-error regexps., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8bd0e66 078/459: fix compilation regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8aaf6ff 059/459: Ensure template-file is not included in MELPA-built package., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8e8c804 061/459: Fix test., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7dec1ea 069/459: make compilation regexps work with xbuild, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1939c4e 073/459: Extract compilation-mode regexps into constants.,
ELPA Syncer <=
- [elpa] externals/csharp-mode 334566c 083/459: Support emacs binary being installed to path with whitespace., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c9e1aa9 081/459: Merge pull request #29 from josteink/compilation-regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f1cd209 091/459: fontify var as a typeless declaration, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a854be8 094/459: Bump version., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d85cc3d 103/459: Add unit-test for hooks during mode-activation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8dd56f4 100/459: Reproduce issue #42., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5ecae8b 099/459: Add support for devenv compilation-output., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b061f8a 104/459: Add unit-test for indentation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 831bd53 108/459: Fix "make clean"., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ba36d6c 105/459: Replace `flet` with `letrec`, ELPA Syncer, 2021/08/22