On Sep 21, 2021, at 15:03, Terry Reedy <tjre...@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
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/KRTCNNMHKT4RPH5I4PD2W6D7OBQDNRZL/ Code of Conduct: http://python.org/psf/codeofconduct/