Subject: bug#62214: closed (Re: bug#62214: 28.1; dns-mode: ";" is not a comment if it appears inside "quotes")

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 05 Sep 2023 21:10:01 +0000

Your bug report

#62214: 28.1; dns-mode: ";" is not a comment if it appears inside "quotes"

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].

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

Subject: Re: bug#62214: 28.1; dns-mode: ";" is not a comment if it appears inside "quotes"
From: Stefan Kangas <[email-masked]>
To: "Trent W. Buck" <[email-masked]>
Cc: [email-masked]
Date: Tue, 5 Sep 2023 14:09:31 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 30.1

"Trent W. Buck" <[email-masked]> writes:

> dns-mode doesn't know what quote marks are.
> This causes incorrect syntax highlighting in this zonefile (default.txt):
>
>     bash5$ /sbin/opendkim-genkey
>     bash5$ cat default.txt
>     default._domainkey	IN	TXT	( "v=DKIM1; h=sha256; k=rsa; "
>               "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo4QdBfWyv76D427ls8apBlBEVgWnU+3Z90ANwMQ8D7KjxuvKccSPTm/zCn9EZx0fr39shjFjpMrhsMY9EjQdCUrAQCnN6blOCpzV4DN9VAMrRjmtUgsWc1jmMuE35dVThkrsQK6QNlEZ0YmE53zCXyxA4R4+3AP/o4VIi9JLMlEBm0+5AwHfyIVsZstgBMVkX5pd2U7eRMa6DZ"
>               "8NWZ0W1FppSzZJFw9L/QhPE4xuatib1yjHAvKovFoVTwzESYp9ousrrwghUfAIznDtdDF00l8mpECXBs+KnYUZ7NQTClnDw15c2BXTK+AYOqcMonS9vW7/4B3cMgXbW1LpRR/p5QIDAQAB" )  ; ----- DKIM key default for localhost
>     bash5$ emacs -Q -nw default.txt -f dns-mode
>
> Does it just need (modify-syntax-entry ?" "\"" table) ???
>
> That seems to work for me.

Thanks, now fixed on master (commit c586d984f27).

Subject: 28.1; dns-mode: ";" is not a comment if it appears inside "quotes"
From: "Trent W. Buck" <[email-masked]>
To: [email-masked]
Date: Thu, 16 Mar 2023 14:33:30 +1100
List-Id: <debbugs-submit.debbugs.gnu.org>

dns-mode doesn't know what quote marks are.
This causes incorrect syntax highlighting in this zonefile (default.txt):

    bash5$ /sbin/opendkim-genkey
    bash5$ cat default.txt
    default._domainkey	IN	TXT	( "v=DKIM1; h=sha256; k=rsa; "
              "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo4QdBfWyv76D427ls8apBlBEVgWnU+3Z90ANwMQ8D7KjxuvKccSPTm/zCn9EZx0fr39shjFjpMrhsMY9EjQdCUrAQCnN6blOCpzV4DN9VAMrRjmtUgsWc1jmMuE35dVThkrsQK6QNlEZ0YmE53zCXyxA4R4+3AP/o4VIi9JLMlEBm0+5AwHfyIVsZstgBMVkX5pd2U7eRMa6DZ"
              "8NWZ0W1FppSzZJFw9L/QhPE4xuatib1yjHAvKovFoVTwzESYp9ousrrwghUfAIznDtdDF00l8mpECXBs+KnYUZ7NQTClnDw15c2BXTK+AYOqcMonS9vW7/4B3cMgXbW1LpRR/p5QIDAQAB" )  ; ----- DKIM key default for localhost
    bash5$ emacs -Q -nw default.txt -f dns-mode

Does it just need (modify-syntax-entry ?" "\"" table) ???

That seems to work for me.