GNU bug report logs - #61796
30.0.50; tree-sitter + python: string fontification does not handle nested strings

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Sat, 25 Feb 2023 22:36:01 UTC

Severity: normal

Found in version 30.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

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 61796 in the body.
You can then email your comments to 61796 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#61796; Package emacs. (Sat, 25 Feb 2023 22:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mickey Petersen <mickey <at> masteringemacs.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 25 Feb 2023 22:36:02 GMT) Full text and rfc822 format available.

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

From: Mickey Petersen <mickey <at> masteringemacs.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; tree-sitter + python: string fontification does not handle
 nested strings
Date: Sat, 25 Feb 2023 22:30:23 +0000
I think the query and/or the way fontification is applied is causing a
problem when you nested double quotes inside single quotes:

# not right
A = 'before "inside" after'

# right
B = "before 'inside' after"



In GNU Emacs 30.0.50 (build 9, x86_64-pc-linux-gnu, GTK+ Version
 3.24.20, cairo version 1.16.0) of 2023-02-23 built on mickey-work
Repository revision: fad3665069740e002fcb7f9313f9eeec81ad9a0c
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Ubuntu 20.04.3 LTS

Configured using:
 'configure --with-native-compilation --with-json --with-mailutils
 --without-compress-install --with-imagemagick CC=gcc-10'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ
IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2
M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP
SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE
XIM XINPUT2 XPM GTK3 ZLIB





Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sun, 26 Feb 2023 01:14:02 GMT) Full text and rfc822 format available.

Notification sent to Mickey Petersen <mickey <at> masteringemacs.org>:
bug acknowledged by developer. (Sun, 26 Feb 2023 01:14:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Mickey Petersen <mickey <at> masteringemacs.org>, 61796-done <at> debbugs.gnu.org
Subject: Re: bug#61796: 30.0.50; tree-sitter + python: string fontification
 does not handle nested strings
Date: Sun, 26 Feb 2023 03:13:13 +0200
Hi! Thanks for the report.

On 26/02/2023 00:30, Mickey Petersen wrote:
> I think the query and/or the way fontification is applied is causing a
> problem when you nested double quotes inside single quotes:
> 
> # not right
> A = 'before "inside" after'
> 
> # right
> B = "before 'inside' after"

Should be fixed in emacs-29 with commit 3cae0e3d96a.




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

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

Previous Next


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