[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 5c06e99 087/346: add d-exceptions compilation error
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 5c06e99 087/346: add d-exceptions compilation error regexp |
Date: |
Sun, 29 Aug 2021 11:00:08 -0400 (EDT) |
branch: elpa/d-mode
commit 5c06e99cbe23c0c6187850217d970d54cb5d5b80
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: Sergei Nosov <sergei.nosov@gmail.com>
add d-exceptions compilation error regexp
---
d-mode.el | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index ac613d8..25af43f 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -168,20 +168,27 @@ operators."
;;; Patterns to recognize the compiler generated messages
-;; The following recognizes messages generated by the LDC compiler.
-;; Subexpression 1 is the filename, 2 is the line number, nil is the
+;; The following regexp recognizes messages generated by the LDC and DMD
+;; compilers. Subexpression 1 is the filename, 2 is the line number, nil is
the
;; column, because it's not present in the LDC error messages, and the
-;; subexpressions 3 and 4 are the message type -- error, warning, or
-;; info. To enable, add ldc symbol to compilation-error-regexp-alist
+;; subexpressions 3 and 4 are the message type -- error, warning, or info.
-;; GDC messages are probably recognized by gnu symbol already listed
-;; in compilation-error-regexp-alist. The patterns for messages
-;; generated by DMD can be added in another similar call
-;; (add-to-list 'compilation-error-regexp-alist-alist '(dmd ...
+;; GDC messages are recognized by gnu symbol already listed in
+;; compilation-error-regexp-alist.
(add-to-list 'compilation-error-regexp-alist-alist
'(ldc
"^\\([^: \n]+\\)(\\([0-9]+\\)): \\(?:
*\\(?3:\\(?:W\\(?::\\|arning\\)\\|warning\\)\\)\\|
*\\(?4:[Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|\\[ skipping \\.+
]\\|instantiated from\\|required from\\|[Nn]ote\\)\\| *\\(?:[Ee]rror\\)\\)"
1 2 nil (3 . 4)))
+(add-to-list 'compilation-error-regexp-alist 'ldc)
+
+;; The following regexp recognizes messages generated by the D runtime for
+;; unhandled exceptions (e.g. assert failures).
+
+(add-to-list 'compilation-error-regexp-alist-alist
+ '(d-exceptions
+ "^[^@]*?@\\(.*?\\)(\\([0-9]+\\)):"
+ 1 2 nil 2))
+(add-to-list 'compilation-error-regexp-alist 'd-exceptions)
;;----------------------------------------------------------------------------
- [nongnu] elpa/d-mode aaa704a 216/346: Fix coverage issues in d-forward-type, (continued)
- [nongnu] elpa/d-mode aaa704a 216/346: Fix coverage issues in d-forward-type, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 572d707 221/346: Improve comprehension of constness and storage classes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 64afe5f 206/346: .travis.yml: Test against more Emacs versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 02733b0 223/346: Remove some redundant progns, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c9febb3 299/346: d-mode-test: Always ignore .res files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2d4bc7d 318/346: Update comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 46a57f4 310/346: Fontify the special words inside version/debug/extern/pragma/__traits/scope, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 805eeba 078/346: Add links to build and coverage status to README., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8076559 081/346: Replace obsolete defadvice by the new advice-add., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ee38763 083/346: Use the new advising mechanism on new emacs versions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5c06e99 087/346: add d-exceptions compilation error regexp,
ELPA Syncer <=
- [nongnu] elpa/d-mode 5501b77 096/346: Prepare for a formal release., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 89339fa 100/346: Fix typo in comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 14e2e3b 105/346: Fix exponential fontification time of backslashes in WYSIWYG-literals, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 438cf53 109/346: fixed missing keyword "idouble", ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f6bf2b7 141/346: tests: Split test into individual ert tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 23d7a1a 148/346: tests: Fix testing compilation-mode buffers with Emacs 26, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a731ae6 157/346: Fix imenu for functions with parameter types containing parens, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ab1057f 159/346: Fix imenu for functions with tail qualifiers on their own line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f61e72c 173/346: Drop support for Emacs < 24.3, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 09745ba 175/346: Merge pull request #87 from CyberShadow/emacs-24-plus, ELPA Syncer, 2021/08/29