Incorrect function highlighting in raw format (rf) string · Issue #267 · MagicStack/MagicPython
Repository navigation
Incorrect function highlighting in raw format (rf) string #267
New issue
New issue
Open
Open
Incorrect function highlighting in raw format (rf) string #267
Description
@cabralpinto's profile cabralpinto opened on Aug 14, 2024I'm getting some incorrect highlighting inside an rf string, in particular for the . and (1) portions, as well as the curly braces. Take a look:
- Editor name and version : VSCode
- Platform : Windows
- Color scheme : Default
- MagicPython version : v1.1.0
- A sreenshot :
- 5-10 lines of surrounding code :
for item in (
re.split(rf" ?\r <BR> (?=\d+{match.group(1)})", text)
if (match := re.match(r"1( ?[-.])", text)) is not None
else [text]
):