
Sept. 21, 2021
10:44 p.m.
On Sep 21, 2021, at 15:03, Terry Reedy <tjreedy@udel.edu> wrote:
If same-quote nesting were limited to 1 deep, REs could handle it. Since nesting is not, and same-quote nesting would not be, they cannot in general.
f'''length is {len(3*f"{f'{a}'}")}'''
I tried this in the latest python-mode.el for Emacs, and while it isn’t able to handle it correctly, at least the damage is local. That’s been one of the problems with Emacs syntax highlighting: it usually works quite well these days but when it gets messed up, the incorrect highlighting can extend deep into the file. speaking-for-all-3-of-the-remaining-emacs-users-ly y’rs, -Barry