]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix ruby lint output regexps
authorTim Landscheidt <tim@tim-landscheidt.de>
Mon, 28 Apr 2025 00:05:22 +0000 (03:05 +0300)
committerEshel Yaron <me@eshelyaron.com>
Tue, 29 Apr 2025 07:32:31 +0000 (09:32 +0200)
* doc/misc/flymake.texi (An annotated example backend):
Fix regexp.

* lisp/progmodes/ruby-mode.el (ruby-flymake-simple)
(ruby-flymake-rubocop): Fix regexp
(https://lists.gnu.org/archive/html/emacs-devel/2025-04/msg00851.html).

(cherry picked from commit 4765a3b3f2b83e6a2ba4e63f78bec16dc8ca737f)

doc/misc/flymake.texi
lisp/progmodes/ruby-mode.el

index 6104c38636c3e2ea1010297abe8dd966b08d330c..4b1b32865762d5b8743198b6ffb21f20a61d6ecf 100644 (file)
@@ -854,7 +854,7 @@ Binding,,, elisp, The Emacs Lisp Reference Manual}) to be active.
                       ;;
                       (cl-loop
                        while (search-forward-regexp
-                              "^\\(?:.*.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
+                              "^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
                               nil t)
                        for msg = (match-string 2)
                        for (beg . end) = (flymake-diag-region
index e9e1af0f2455eaf00f1c703e364d2d12bedc2a2a..61042831b3b259402be15eba47ecb11a007a0026 100644 (file)
@@ -2516,7 +2516,7 @@ A slash character after any of these should begin a regexp."))
      (goto-char (point-min))
      (cl-loop
       while (search-forward-regexp
-             "^\\(?:.*.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
+             "^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
              nil t)
       for msg = (match-string 2)
       for (beg . end) = (flymake-diag-region
@@ -2622,7 +2622,7 @@ the gem \"rubocop\".  When t, it is used unconditionally."
          (goto-char (point-min))
          (cl-loop
           while (search-forward-regexp
-                 "^\\(?:.*.rb\\|-\\):\\([0-9]+\\):\\([0-9]+\\): \\(.*\\)$"
+                 "^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\):\\([0-9]+\\): \\(.*\\)$"
                  nil t)
           for msg = (match-string 3)
           for (beg . end) = (flymake-diag-region