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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62214 in the body.
You can then email your comments to 62214 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#62214; Package emacs. (Thu, 16 Mar 2023 03:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Trent W. Buck" <trentbuck <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 16 Mar 2023 03:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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.




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Tue, 05 Sep 2023 21:10:01 GMT) Full text and rfc822 format available.

Notification sent to "Trent W. Buck" <trentbuck <at> gmail.com>:
bug acknowledged by developer. (Tue, 05 Sep 2023 21:10:01 GMT) Full text and rfc822 format available.

Message #10 received at 62214-done <at> debbugs.gnu.org (full text, mbox):

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 04 Oct 2023 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 205 days ago.

Previous Next


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