aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/ruby-mode.el
diff options
context:
space:
mode:
authorTim Landscheidt2025-04-28 03:05:22 +0300
committerDmitry Gutov2025-04-28 03:05:41 +0300
commit4765a3b3f2b83e6a2ba4e63f78bec16dc8ca737f (patch)
tree2f87a5b1c494146b84ca0cb67cb27c8e3eac2022 /lisp/progmodes/ruby-mode.el
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).
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
-rw-r--r--lisp/progmodes/ruby-mode.el4
1 files changed, 2 insertions, 2 deletions
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