[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/tuareg 95f3b01 1/5: Explicit group numbering in error rege
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/tuareg 95f3b01 1/5: Explicit group numbering in error regexp |
Date: |
Fri, 27 Aug 2021 10:57:57 -0400 (EDT) |
branch: elpa/tuareg
commit 95f3b01a5f1af24cc1cd427c5f8e16b551ba57fd
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Christophe Troestler <christophe.Troestler@umons.ac.be>
Explicit group numbering in error regexp
This refactoring makes it easier to change the regexp without
renumbering them all each time a group is added or removed.
---
tuareg.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tuareg.el b/tuareg.el
index 5e5c39c..5dd9429 100644
--- a/tuareg.el
+++ b/tuareg.el
@@ -3173,7 +3173,7 @@ Short cuts for interactions with the REPL:
(defconst tuareg--error-regexp
(rx bol
(* " ")
- (group ; 1: HIGHLIGHT
+ (group-n 1 ; 1: HIGHLIGHT
(or "File "
;; Exception backtrace.
(seq
@@ -3181,16 +3181,16 @@ Short cuts for interactions with the REPL:
"Called from")
(* nonl) ; OCaml ≥4.11: " FUNCTION in"
" file "))
- (group (? "\"")) ; 2
- (group (+ (not (in "\t\n \",<>")))) ; 3: FILE
+ (group-n 2 (? "\"")) ; 2
+ (group-n 3 (+ (not (in "\t\n \",<>")))) ; 3: FILE
(backref 2)
(? " (inlined)")
", line" (? "s") " "
- (group (+ (in "0-9"))) ; 4: LINE-START
- (? "-" (group (+ (in "0-9")))) ; 5; LINE-END
+ (group-n 4 (+ (in "0-9"))) ; 4: LINE-START
+ (? "-" (group-n 5 (+ (in "0-9")))) ; 5; LINE-END
(? ", character" (? "s") " "
- (group (+ (in "0-9"))) ; 6: COL-START
- (? "-" (group (+ (in "0-9"))))) ; 7: COL-END
+ (group-n 6 (+ (in "0-9"))) ; 6: COL-START
+ (? "-" (group-n 7 (+ (in "0-9"))))) ; 7: COL-END
;; Colon not present in backtraces.
(? ":"))
(? "\n"
@@ -3201,7 +3201,7 @@ Short cuts for interactions with the REPL:
(+ "^"))
"\n"
(* (in "\t ")))
- (group "Warning" ; 8: WARNING
+ (group-n 8 "Warning" ; 8: WARNING
(? " " (+ (in "0-9")))
(? " [" (+ (in "a-z0-9-")) "]")
":")))
- [nongnu] elpa/tuareg updated (f6801c8 -> 4c4fad3), ELPA Syncer, 2021/08/27
- [nongnu] elpa/tuareg 5872d6b 2/5: Treat ancillary locations as messages at Info level, not Error, ELPA Syncer, 2021/08/27
- [nongnu] elpa/tuareg b62d4ee 4/5: Add genuine example of warning with ancillary locations, ELPA Syncer, 2021/08/27
- [nongnu] elpa/tuareg 4c4fad3 5/5: Work around bug in Emacs 26 and older, ELPA Syncer, 2021/08/27
- [nongnu] elpa/tuareg 95f3b01 1/5: Explicit group numbering in error regexp,
ELPA Syncer <=
- [nongnu] elpa/tuareg 2a58507 3/5: Use Warning level for Alert messages, ELPA Syncer, 2021/08/27