Skip to content

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

@cabralpinto

Description

@cabralpinto

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]
):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions