MagicPython
MagicPython copied to clipboard
Incorrect function highlighting in raw format (rf) string
I'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]
):