diff options
author | Richard Hansen <rhansen@rhansen.org> | 2022-06-28 15:05:04 -0400 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-09-11 13:46:30 +0200 |
commit | 395786f42b0eed361ee34cd398bc8ee33802ed04 (patch) | |
tree | 164a92987f7292ad3d3400020d18a95aa639994f /lisp/whitespace.el | |
parent | 99e8faa7257affd84c030fe02108769fe354709e (diff) | |
download | emacs-395786f42b0eed361ee34cd398bc8ee33802ed04.tar.gz emacs-395786f42b0eed361ee34cd398bc8ee33802ed04.tar.bz2 emacs-395786f42b0eed361ee34cd398bc8ee33802ed04.zip |
whitespace: Include empty final line in BoB empty match
* lisp/whitespace.el (whitespace-empty-at-bob-regexp): Include any
last line trailing whitespace in the BoB empty line match to ensure
that those characters get highlighted.
Diffstat (limited to 'lisp/whitespace.el')
-rw-r--r-- | lisp/whitespace.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/whitespace.el b/lisp/whitespace.el index 4a8117b75e0..8146eff9b0a 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el @@ -730,7 +730,7 @@ Used when `whitespace-style' includes `indentation', :group 'whitespace) -(defcustom whitespace-empty-at-bob-regexp "\\`\\(\\([ \t]*\n\\)+\\)" +(defcustom whitespace-empty-at-bob-regexp "\\`\\([ \t\n]*\\(?:\n\\|$\\)\\)" "Specify regexp for empty lines at beginning of buffer. Used when `whitespace-style' includes `empty'." |