-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong highlight for raw string #190519
Comments
Unfortunately this is dependent on VS Code itself. In order to make a change it will require a change upstream. If you would like to see such a change then please open an issue at https://github.com/microsoft/vscode. This comes from MagicPython |
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.81.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
OK, Thanks |
Now is 1.81.1, but yet |
I've opened MagicStack/MagicPython#259 on the upstream repo for this. |
I know this is closed but check this out: MagicStack/MagicPython#114 (comment) r"" is fore RE, use R"" for raw string |
Thank you, I didn't even know about this until you told me. I've noticed a lot of debate on the MagicPython side as well, and dissatisfied with status quo. |
Here's the reason. MagicStack/MagicPython#114 (comment) |
Type: Bug
Behaviour
Expected vs. Actual
Expected
Actual: The
\
of a raw string is the\
and not the escape character, but the hignlight still treats them as escapes.Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.15.12191008
VS Code version: Code 1.80.2 (2ccd690, 2023-07-27T20:40:28.909Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: