Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect function highlighting in raw format (rf) string #267

Open
cabralpinto opened this issue Aug 14, 2024 · 0 comments
Open

Incorrect function highlighting in raw format (rf) string #267

cabralpinto opened this issue Aug 14, 2024 · 0 comments

Comments

@cabralpinto
Copy link

cabralpinto commented Aug 14, 2024

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:
    image
  • 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]
):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant