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

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

[nongnu] elpa/d-mode 5c5a2b1 071/346: Merge pull request #37 from dmakar


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 5c5a2b1 071/346: Merge pull request #37 from dmakarov/master
Date: Sun, 29 Aug 2021 11:00:06 -0400 (EDT)

branch: elpa/d-mode
commit 5c5a2b128802ed4f27b5403c5aba01c3c801ac98
Merge: 5691b70 01997e0
Author: Russel Winder <russel@winder.org.uk>
Commit: Russel Winder <russel@winder.org.uk>

    Merge pull request #37 from dmakarov/master
    
    Add LDC compiler message pattern to be recognized in compilation mode.
---
 d-mode.el | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/d-mode.el b/d-mode.el
index 2dabd7a..4ed4fab 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -161,6 +161,24 @@ operators."
        (c-font-lock-doc-comments "/\\+[+!]\\|/\\*[*!]\\|//[/!]" limit
          doxygen-font-lock-doc-comments)))))
 
+
+;;; 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
+;; 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
+
+;; 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 ...
+(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)))
+
 ;;----------------------------------------------------------------------------
 
 ;; Built-in basic types



reply via email to

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