emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30750: closed (25.3; New Python3.6 f-string syntax highlighting supp


From: GNU bug Tracking System
Subject: bug#30750: closed (25.3; New Python3.6 f-string syntax highlighting support (feature request))
Date: Fri, 16 Oct 2020 18:10:01 +0000

Your message dated Fri, 16 Oct 2020 14:09:18 -0400
with message-id <jwvsgaet56w.fsf-monnier+emacs@gnu.org>
and subject line Re: bug#30750: 25.3; New Python3.6 f-string syntax 
highlighting support (feature request)
has caused the debbugs.gnu.org bug report #30750,
regarding 25.3; New Python3.6 f-string syntax highlighting support (feature 
request)
to be marked as done.

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


-- 
30750: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30750
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 25.3; New Python3.6 f-string syntax highlighting support (feature request) Date: Thu, 8 Mar 2018 23:09:36 +1100
In python 3.6, code can be evaluated in a string, called an f-string,
see: https://www.python.org/dev/peps/pep-0498/

It would be nice if python-mode would not syntax highlight the code in
the f-string as a string, and instead use regular syntax highlighting.

eg:

    print(f'Test {} me!'.format(2 + 2))

can be written as:

    print(f'Test {2 + 2} me!')

I noticed php-mode (which had something like this for many years)
does for for PHP's strings, eg: "Test {$2 + 2} me!"

----

It was recommended I send in a feature request:
see: https://emacs.stackexchange.com/questions/39283

Thanks



--- End Message ---
--- Begin Message --- Subject: Re: bug#30750: 25.3; New Python3.6 f-string syntax highlighting support (feature request) Date: Fri, 16 Oct 2020 14:09:18 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
> It would be nice if python-mode would not syntax highlight the code in
> the f-string as a string, and instead use regular syntax highlighting.

I just pushed a change to the `master` branch of Emacs which should
do that.


        Stefan



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]