mirror of
https://github.com/vale981/melpazoid
synced 2025-03-05 17:31:38 -05:00
feat: enable whitespace in linter regexps to cross lines
This commit is contained in:
parent
d10cdad49f
commit
c3f4a9771a
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ If NO-SMART-SPACE is nil, use smart spaces -- i.e. replace all
|
||||||
SPC characters in REGEXP with [[:space:]]+. If INCLUDE-COMMENTS
|
SPC characters in REGEXP with [[:space:]]+. If INCLUDE-COMMENTS
|
||||||
then also scan comments for REGEXP; similar for INCLUDE-STRINGS."
|
then also scan comments for REGEXP; similar for INCLUDE-STRINGS."
|
||||||
(unless no-smart-space
|
(unless no-smart-space
|
||||||
(setq regexp (replace-regexp-in-string " " "[[:space:]]+" regexp)))
|
(setq regexp (replace-regexp-in-string " " "[[:space:]\n]+" regexp)))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(while (re-search-forward regexp nil t)
|
(while (re-search-forward regexp nil t)
|
||||||
|
|
Loading…
Add table
Reference in a new issue