OneDark-Pro icon indicating copy to clipboard operation
OneDark-Pro copied to clipboard

Python raw strings are not being colored properly

Open gbanaggia opened this issue 1 year ago • 4 comments

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.

gbanaggia avatar Jan 13 '25 16:01 gbanaggia

I've just encountered the same problem. And I found that the problem only happened when use the 'r'.

Triones7 avatar Jan 14 '25 07:01 Triones7

that should be vscode's issue

Binaryify avatar Feb 01 '25 10:02 Binaryify

Wait, isn't this exactly the kind of functionality that this plugin provides? Or are you saying everything is okay on OneDark Pro's end but there is something pertaining to VSCode itself that is not allowing the raw string to be properly colored? Or are you just saying that this issue needs to receive a different label here? If so, we need someone with writing privileges to do it...

gbanaggia avatar Feb 01 '25 14:02 gbanaggia

Same here. It happens with different actions, like cutting lines, pasting? Just writting anythin, not just strings.

Image

rquispeq avatar May 09 '25 15:05 rquispeq