Skip to content

Python raw strings are not being colored properly #839

@gbanaggia

Description

@gbanaggia

Describe the bug
Python raw strings are not being colored properly.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Python raw string (for instance: r"C:\Example\string")
  2. Notice that the string is not properly colored

Expected behavior
Raw strings should be colored just just Formatted string literals ('f-strings') are.

Screenshots & Example Code
image
Coloring on line 5 should be identical to coloring on line 6.

Desktop (please complete the following information):

  • OS: Windows 11
  • VSCODE Version: 1.96.3
  • Theme version: 3.17.7

Additional context
None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions