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


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




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.