emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5f5617727d: Match complete words in dns-mode


From: Lars Ingebrigtsen
Subject: master 5f5617727d: Match complete words in dns-mode
Date: Mon, 13 Jun 2022 10:34:11 -0400 (EDT)

branch: master
commit 5f5617727d91664bb3e4e559a1347bec86759846
Author: Lassi Kortela <lassi@lassi.io>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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
---
 lisp/textmodes/dns-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/textmodes/dns-mode.el b/lisp/textmodes/dns-mode.el
index d4acbe24eb..42d547504c 100644
--- a/lisp/textmodes/dns-mode.el
+++ b/lisp/textmodes/dns-mode.el
@@ -110,11 +110,11 @@
                        "26.1" 'set)
 
 (defcustom dns-mode-font-lock-keywords
-  `((,(concat "^\\$" (regexp-opt dns-mode-control-entities))
+  `((,(concat "^\\$" (regexp-opt dns-mode-control-entities) "\\>")
      0 ,dns-mode-control-entity-face)
     ("^\\$[a-z0-9A-Z]+" 0 ,dns-mode-bad-control-entity-face)
-    (,(regexp-opt dns-mode-classes) 0 ,dns-mode-class-face)
-    (,(regexp-opt dns-mode-types) 0 ,dns-mode-type-face))
+    (,(regexp-opt dns-mode-classes 'words) 0 ,dns-mode-class-face)
+    (,(regexp-opt dns-mode-types 'words) 0 ,dns-mode-type-face))
   "Font lock keywords used to highlight text in DNS master file mode."
   :version "26.1"
   :type 'sexp)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]