diff options
| author | Stefan Kangas | 2021-01-28 17:05:06 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2021-01-28 18:24:45 +0100 |
| commit | 4cded88b0ebb005f67447cd07da016eb0b7ef4a4 (patch) | |
| tree | d2a0f7ae9aa002a4c715f390ce8e149378bb3c30 | |
| parent | 80d964ec8b64a1c604c99aa51ecdbd813d739a90 (diff) | |
| download | emacs-4cded88b0ebb005f67447cd07da016eb0b7ef4a4.tar.gz emacs-4cded88b0ebb005f67447cd07da016eb0b7ef4a4.zip | |
* lisp/generic-x.el (hosts-generic-mode): Support IPv6 addresses.
| -rw-r--r-- | lisp/generic-x.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/generic-x.el b/lisp/generic-x.el index 60cf8468a4e..bd03f287fc7 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el | |||
| @@ -365,7 +365,8 @@ your changes into effect." | |||
| 365 | (define-generic-mode hosts-generic-mode | 365 | (define-generic-mode hosts-generic-mode |
| 366 | '(?#) | 366 | '(?#) |
| 367 | '("localhost") | 367 | '("localhost") |
| 368 | '(("\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 font-lock-constant-face)) | 368 | '(("\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 font-lock-constant-face) |
| 369 | ("\\<\\([0-9A-Fa-f:]+\\)\\>" 1 font-lock-constant-face)) | ||
| 369 | '("[hH][oO][sS][tT][sS]\\'") | 370 | '("[hH][oO][sS][tT][sS]\\'") |
| 370 | nil | 371 | nil |
| 371 | "Generic mode for HOSTS files.")) | 372 | "Generic mode for HOSTS files.")) |