-
Notifications
You must be signed in to change notification settings - Fork 749
Closed
Labels
A-lexingarea: changes to individual lexersarea: changes to individual lexersS-minorseverity: minorseverity: minorT-bugtype: a bugtype: a buggood first issueGood for newcomersGood for newcomers
Description
Python(3) code using raw f-strings containing a backslash within escaped braces (i.e. double braces) cannot be parsed. A minimum example is
fr'{{\S'Some pointers:
- Works:
f'{{\S'. - Works:
r'{{\S' - Works:
rf'{{'. - Works:
rf'\S'. - Also do not work:
rf'{{\S'. - The
Sis not important, though some character must be there in order for the syntax to be valid.
This might seem like a pretty esoteric case. For me it comes up a lot when writing LaTeX in Matplotlib.
Metadata
Metadata
Assignees
Labels
A-lexingarea: changes to individual lexersarea: changes to individual lexersS-minorseverity: minorseverity: minorT-bugtype: a bugtype: a buggood first issueGood for newcomersGood for newcomers