GNU bug report logs - #29775
26.0.90; Incorrect fontification within double-quoted parts in a TOML multi-line string

Previous Next

Package: emacs;

Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>

Date: Tue, 19 Dec 2017 21:01:02 UTC

Severity: minor

Found in version 26.0.90

Full log


View this message in rfc822 format

From: Kaushal Modi <kaushal.modi <at> gmail.com>
To: 29775 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>
Subject: bug#29775: 26.0.90; Incorrect fontification within double-quoted parts in a TOML multi-line string
Date: Tue, 23 Jan 2018 22:07:57 +0000
[Message part 1 (text/plain, inline)]
Hello,

Today, I noticed another, but related, fontification issue with
triple-quoted strings in TOML. Strings starting with # is interpreted as
comment inside the triple-quoted strings too.

Here's an example:

favicon_code = """
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
"""
It looks like this:

[image: image.png]


-- 

Kaushal Modi
[Message part 2 (text/html, inline)]
[image.png (image/png, inline)]

This bug report was last modified 7 years and 148 days ago.

Previous Next


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