Subject: bug#66660: closed (Re: bug#66660: [PATCH] Fix dns-mode-syntax-table)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 21 Oct 2023 10:32:02 +0000

Your bug report

#66660: [PATCH] Fix dns-mode-syntax-table

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
66660: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66660
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#66660: [PATCH] Fix dns-mode-syntax-table
From: Stefan Kangas <[email-masked]>
To: Lassi Kortela <[email-masked]>, [email-masked]
Date: Sat, 21 Oct 2023 03:30:53 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 30.1

Lassi Kortela <[email-masked]> writes:

>> Could you please send the patch as an attachment formatted by this
>> command:
>>
>>      git format-patch -1
>>
>> That would save me time when installing the patch, and its easier to
>> make sure I don't make any mistakes with attributing the change to you.
>>
>> Please also add the bug number of this bug in the commit message, like
>> so: Bug#66660.
>
> Attached. Thank you.

Thanks, installed on master.

I will backport it to emacs-29 as well, unless anyone objects.

[1: e6f05e189db]: 2023-10-21 12:28:34 +0200
  Recognize backslash in `dns-mode` quoted values
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e6f05e189db73a0f0b29f987381ffef61a409232

Subject: [PATCH] Fix dns-mode-syntax-table
From: Lassi Kortela <[email-masked]>
To: [email-masked]
Date: Fri, 20 Oct 2023 19:21:11 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Attached is a simple fix to the syntax highlighting of dns-mode.

The patch highlights double-quoted strings as specified in RFC 1035.	

--- dns-mode.el.orig	2023-10-20 19:12:43.000000000 +0300
+++ dns-mode.el	2023-10-20 19:13:01.000000000 +0300
@@ -137,6 +137,8 @@
   (let ((table (make-syntax-table)))
     (modify-syntax-entry ?\; "<   " table)
     (modify-syntax-entry ?\n ">   " table)
+    (modify-syntax-entry ?\" "\"" table)
+    (modify-syntax-entry ?\\ "\\" table)
     table)
   "Syntax table in use in DNS master file buffers.")