diff options
| author | Lassi Kortela | 2022-06-13 16:32:45 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-06-13 16:32:45 +0200 |
| commit | 5f5617727d91664bb3e4e559a1347bec86759846 (patch) | |
| tree | d7fb112de0c92abde34f94529f52c8acf6e11d8c | |
| parent | 57cd069f73808f862c326bac4191ab507f3c973f (diff) | |
| download | emacs-5f5617727d91664bb3e4e559a1347bec86759846.tar.gz emacs-5f5617727d91664bb3e4e559a1347bec86759846.zip | |
Match complete words in dns-mode
* lisp/textmodes/dns-mode.el (dns-mode-font-lock-keywords): Match
complete words like SOA and not all words that contain the string
SOA (bug#55944).
Copyright-paperwork-exempt: yes
| -rw-r--r-- | lisp/textmodes/dns-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/textmodes/dns-mode.el b/lisp/textmodes/dns-mode.el index d4acbe24ebb..42d547504c1 100644 --- a/lisp/textmodes/dns-mode.el +++ b/lisp/textmodes/dns-mode.el | |||
| @@ -110,11 +110,11 @@ | |||
| 110 | "26.1" 'set) | 110 | "26.1" 'set) |
| 111 | 111 | ||
| 112 | (defcustom dns-mode-font-lock-keywords | 112 | (defcustom dns-mode-font-lock-keywords |
| 113 | `((,(concat "^\\$" (regexp-opt dns-mode-control-entities)) | 113 | `((,(concat "^\\$" (regexp-opt dns-mode-control-entities) "\\>") |
| 114 | 0 ,dns-mode-control-entity-face) | 114 | 0 ,dns-mode-control-entity-face) |
| 115 | ("^\\$[a-z0-9A-Z]+" 0 ,dns-mode-bad-control-entity-face) | 115 | ("^\\$[a-z0-9A-Z]+" 0 ,dns-mode-bad-control-entity-face) |
| 116 | (,(regexp-opt dns-mode-classes) 0 ,dns-mode-class-face) | 116 | (,(regexp-opt dns-mode-classes 'words) 0 ,dns-mode-class-face) |
| 117 | (,(regexp-opt dns-mode-types) 0 ,dns-mode-type-face)) | 117 | (,(regexp-opt dns-mode-types 'words) 0 ,dns-mode-type-face)) |
| 118 | "Font lock keywords used to highlight text in DNS master file mode." | 118 | "Font lock keywords used to highlight text in DNS master file mode." |
| 119 | :version "26.1" | 119 | :version "26.1" |
| 120 | :type 'sexp) | 120 | :type 'sexp) |