From: Campbell Barton <ideasman42@gmail.com>
To: 30750@debbugs.gnu.org
Subject: bug#30750: 25.3; New Python3.6 f-string syntax highlighting support (feature request)
Date: Thu, 8 Mar 2018 23:09:36 +1100 [thread overview]
Message-ID: <CAEcf3NxFgn4U-+EQeRMHK=YAYNdYmVMAFGG+jniXEnfL7PYYYQ@mail.gmail.com> (raw)
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
next reply other threads:[~2018-03-08 12:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-08 12:09 Campbell Barton [this message]
2019-06-06 19:57 ` bug#30750: MagicPython Valentin Ignatev
2019-06-06 20:49 ` bug#30750: 25.3; New Python3.6 f-string syntax highlighting support (feature request) npostavs
2020-10-16 18:09 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAEcf3NxFgn4U-+EQeRMHK=YAYNdYmVMAFGG+jniXEnfL7PYYYQ@mail.gmail.com' \
--to=ideasman42@gmail.com \
--cc=30750@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).