MagicPython icon indicating copy to clipboard operation
MagicPython copied to clipboard

Incorrect function highlighting in raw format (rf) string

Open cabralpinto opened this issue 1 year ago • 0 comments

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

cabralpinto avatar Aug 14 '24 15:08 cabralpinto