Skip to content

Wrong highlight for raw string #259

Open
@alexr00

Description

@alexr00
  • Editor name and version: VS Code 1.81.1
  • Platform: any
  • Color scheme: any
  • MagicPython version: 7d0f2b2
  • A sreenshot:
    Expected
    image

Actual: The \ of a raw string is the \ and not the escape character, but the hignlight still treats them as escapes.
image

  • 5-10 lines of surrounding code:
print(r"C:\Users\test")

Originally from @AuroraTea in microsoft/vscode#190519

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