mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-21 20:37:38 +00:00
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.
This commit is contained in:
parent
99e8faa725
commit
395786f42b
1 changed files with 1 additions and 1 deletions
|
|
@ -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'."
|
||||
|
|
|
|||
Loading…
Reference in a new issue