← Winnitude! Search  ·  Reader Mode (1094 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 6 LINKS

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, 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 :
  • 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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions