mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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).
This commit is contained in:
parent
568a4894a8
commit
4765a3b3f2
2 changed files with 3 additions and 3 deletions
|
|
@ -858,7 +858,7 @@ Binding,,, elisp, The Emacs Lisp Reference Manual}) to be active.
|
||||||
;;
|
;;
|
||||||
(cl-loop
|
(cl-loop
|
||||||
while (search-forward-regexp
|
while (search-forward-regexp
|
||||||
"^\\(?:.*.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
|
"^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
|
||||||
nil t)
|
nil t)
|
||||||
for msg = (match-string 2)
|
for msg = (match-string 2)
|
||||||
for (beg . end) = (flymake-diag-region
|
for (beg . end) = (flymake-diag-region
|
||||||
|
|
|
||||||
|
|
@ -2516,7 +2516,7 @@ A slash character after any of these should begin a regexp."))
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(cl-loop
|
(cl-loop
|
||||||
while (search-forward-regexp
|
while (search-forward-regexp
|
||||||
"^\\(?:.*.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
|
"^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\): \\(.*\\)$"
|
||||||
nil t)
|
nil t)
|
||||||
for msg = (match-string 2)
|
for msg = (match-string 2)
|
||||||
for (beg . end) = (flymake-diag-region
|
for (beg . end) = (flymake-diag-region
|
||||||
|
|
@ -2625,7 +2625,7 @@ the gem \"rubocop\". When t, it is used unconditionally."
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(cl-loop
|
(cl-loop
|
||||||
while (search-forward-regexp
|
while (search-forward-regexp
|
||||||
"^\\(?:.*.rb\\|-\\):\\([0-9]+\\):\\([0-9]+\\): \\(.*\\)$"
|
"^\\(?:.*\\.rb\\|-\\):\\([0-9]+\\):\\([0-9]+\\): \\(.*\\)$"
|
||||||
nil t)
|
nil t)
|
||||||
for msg = (match-string 3)
|
for msg = (match-string 3)
|
||||||
for (beg . end) = (flymake-diag-region
|
for (beg . end) = (flymake-diag-region
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue