emacs-diffs
[Top][All Lists]
Advanced

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

master d7d9bf1fe35: Lua compilation-mode rules adjustments (bug#60830)


From: Mattias Engdegård
Subject: master d7d9bf1fe35: Lua compilation-mode rules adjustments (bug#60830)
Date: Wed, 10 Jan 2024 11:37:57 -0500 (EST)

branch: master
commit d7d9bf1fe35e81e4bd37c326ebe569ab38043640
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Lua compilation-mode rules adjustments (bug#60830)
    
    * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
    Translate `lua' and `lua-stack' to rx, and change two unnecessary
    non-greedy operators to greedy.
---
 lisp/progmodes/compile.el | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 797e594c0c5..51c81b9d2f6 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -364,10 +364,24 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
 
     ;; Tested with Lua 5.1, 5.2, 5.3, 5.4, and LuaJIT 2.1.
     (lua
-     "^[^\n\t]+?: \\([^\n\t]+?\\):\\([0-9]+?\\): .+\nstack traceback:\n\t"
+     ,(rx bol
+          (+? (not (in "\t\n")))
+          ": "
+          (group (+? (not (in "\t\n"))))
+          ":"
+          (group (+ (in "0-9")))
+          ": "
+          (+ nonl)
+          "\nstack traceback:\n\t")
      1 2 nil 2 1)
     (lua-stack
-     "^\t\\(?:\\[C\\]:\\|\\([^\n\t]+?\\):\\(?:\\([0-9]+?\\):\\)?\\) in "
+     ,(rx bol "\t"
+          (| "[C]:"
+             (: (group (+? (not (in "\t\n"))))
+                ":"
+                (? (group (+ (in "0-9")))
+                   ":")))
+          " in ")
      1 2 nil 0 1)
 
     (gmake



reply via email to

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