aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Landscheidt2025-04-28 03:05:22 +0300
committerDmitry Gutov2025-04-28 03:05:41 +0300
commit4765a3b3f2b83e6a2ba4e63f78bec16dc8ca737f (patch)
tree2f87a5b1c494146b84ca0cb67cb27c8e3eac2022
parent568a4894a8d7cc61c7a4cf416939e01fb78f0ead (diff)
downloademacs-4765a3b3f2b83e6a2ba4e63f78bec16dc8ca737f.tar.gz
emacs-4765a3b3f2b83e6a2ba4e63f78bec16dc8ca737f.zip
Fix ruby lint output regexps
* 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).
-rw-r--r--doc/misc/flymake.texi2
-rw-r--r--lisp/progmodes/ruby-mode.el4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi
index d3a76c8c4d7..d6c8778d785 100644
--- a/doc/misc/flymake.texi
+++ b/doc/misc/flymake.texi
@@ -858,7 +858,7 @@ Binding,,, elisp, The Emacs Lisp Reference Manual}) to be active.
858 ;; 858 ;;
859 (cl-loop 859 (cl-loop
860 while (search-forward-regexp 860 while (search-forward-regexp
861 "^\\(?:.*.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$" 861 "^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
862 nil t) 862 nil t)
863 for msg = (match-string 2) 863 for msg = (match-string 2)
864 for (beg . end) = (flymake-diag-region 864 for (beg . end) = (flymake-diag-region
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 210c8efb6fc..d9044c03aea 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -2516,7 +2516,7 @@ A slash character after any of these should begin a regexp."))
2516 (goto-char (point-min)) 2516 (goto-char (point-min))
2517 (cl-loop 2517 (cl-loop
2518 while (search-forward-regexp 2518 while (search-forward-regexp
2519 "^\\(?:.*.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$" 2519 "^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
2520 nil t) 2520 nil t)
2521 for msg = (match-string 2) 2521 for msg = (match-string 2)
2522 for (beg . end) = (flymake-diag-region 2522 for (beg . end) = (flymake-diag-region
@@ -2625,7 +2625,7 @@ the gem \"rubocop\". When t, it is used unconditionally."
2625 (goto-char (point-min)) 2625 (goto-char (point-min))
2626 (cl-loop 2626 (cl-loop
2627 while (search-forward-regexp 2627 while (search-forward-regexp
2628 "^\\(?:.*.rb\\|-\\):\\([0-9]+\\):\\([0-9]+\\): \\(.*\\)$" 2628 "^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\):\\([0-9]+\\): \\(.*\\)$"
2629 nil t) 2629 nil t)
2630 for msg = (match-string 3) 2630 for msg = (match-string 3)
2631 for (beg . end) = (flymake-diag-region 2631 for (beg . end) = (flymake-diag-region