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

Previous Next

Package: emacs;

Reported by: "Trent W. Buck" <trentbuck <at> gmail.com>

Date: Thu, 16 Mar 2023 03:35:01 UTC

Severity: normal

Found in version 28.1

Fixed in version 30.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#62214: closed (28.1; dns-mode: ";" is not a comment if it
 appears inside "quotes")
Date: Tue, 05 Sep 2023 21:10:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 5 Sep 2023 14:09:31 -0700
with message-id <CADwFkm=PwG=nhkht0SS7YKNE=8tnuSty1a0=b2w=6xeXUmZnag <at> mail.gmail.com>
and subject line Re: bug#62214: 28.1; dns-mode: ";" is not a comment if it appears inside "quotes"
has caused the debbugs.gnu.org bug report #62214,
regarding 28.1; dns-mode: ";" is not a comment if it appears inside "quotes"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
62214: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62214
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Trent W. Buck" <trentbuck <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.1; dns-mode: ";" is not a comment if it appears inside "quotes"
Date: Thu, 16 Mar 2023 14:33:30 +1100
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.


[Message part 3 (message/rfc822, inline)]
From: Stefan Kangas <stefankangas <at> gmail.com>
To: "Trent W. Buck" <trentbuck <at> gmail.com>
Cc: 62214-done <at> debbugs.gnu.org
Subject: Re: bug#62214: 28.1; dns-mode: ";" is not a comment if it appears
 inside "quotes"
Date: Tue, 5 Sep 2023 14:09:31 -0700
Version: 30.1

"Trent W. Buck" <trentbuck <at> gmail.com> 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).


This bug report was last modified 1 year and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.