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

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

[elpa] externals/idlwave ed5c2c4cd1 192/360: Improve error detect regexp


From: ELPA Syncer
Subject: [elpa] externals/idlwave ed5c2c4cd1 192/360: Improve error detect regexp for multi-line errors
Date: Sun, 28 Apr 2024 00:59:22 -0400 (EDT)

branch: externals/idlwave
commit ed5c2c4cd1053e94396c6191ad923e3d25f49f52
Author: JD Smith <jdtsmith@gmail.com>
Commit: JD Smith <jdtsmith@gmail.com>

    Improve error detect regexp for multi-line errors
---
 idlw-shell.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/idlw-shell.el b/idlw-shell.el
index ed68b9c3ab..1cd2ceb6d6 100644
--- a/idlw-shell.el
+++ b/idlw-shell.el
@@ -1725,7 +1725,7 @@ The 1st pair matches the file name, the second pair 
matches the line
 number.")
 
 (defvar idlwave-shell-other-error
-  "^% .*\n\\s-*At:\\s-*\\(.*\\),\\s-*Line\\s-*\\(.*\\)"
+  "^% .*\\(?:\n[^%].*\\)*\n\\s-*At:\\s-*\\(.*\\),\\s-*Line\\s-*\\(.*\\)"
   "A regular expression to match any IDL error.")
 
 (defvar idlwave-shell-halting-error 
@@ -1750,8 +1750,8 @@ number.")
    "\\)"                                 ; end line number group (3)
    "[ \t\n]+"                            ; white space
    "\\("                                 ; file name group (5)
-   "[^ \t\n]+"                           ; file names can contain any non-white
-   "\\([ \t]*\n[ \t]*[^ \t\n]+\\)*"      ; continuation lines file name (6)
+   "[^\t\n]+"                            ; file names can contain any 
non-tab/new-line
+   "\\(\n[ \t]*[^\t\n]+\\)*"             ; continuation line(s) file name (6)
    "\\)"                                 ; end line number group (5)
    )
   "*A regular expression to parse out the file name and line number.



reply via email to

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