Skip to content
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

Python ('{}') highlighted even when not f-string #165571

Closed
Rudxain opened this issue Nov 5, 2022 · 2 comments
Closed

Python ('{}') highlighted even when not f-string #165571

Rudxain opened this issue Nov 5, 2022 · 2 comments
Assignees
Labels
grammar Syntax highlighting grammar upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@Rudxain
Copy link

Rudxain commented Nov 5, 2022

Type: Bug

If a Python file/script contains the following literal:

('{}()[]')

the {} is colored, but not ()[]. This also happens if the parentheses don't encode a tuple, like here:

set('{}()[]')

I enabled and disabled all extensions, and this happens anyways in both cases

VS Code version: Code 1.73.0 (8fa188b, 2022-11-01T15:44:09.336Z)
OS version: Linux x64 5.15.0-52-generic
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3537U CPU @ 2.00GHz (4 x 2757)
GPU Status 2d_canvas: enabled
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
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 15.50GB (13.86GB free)
Process Argv /home/rudxain/Documents/GitHub/rickroll-lang --crash-reporter-id ba7811b0-8267-4f37-9fbb-6e9dd767cf0f
Screen Reader no
VM 0%
DESKTOP_SESSION cinnamon
XDG_CURRENT_DESKTOP X-Cinnamon
XDG_SESSION_DESKTOP cinnamon
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
vscccc:30566498
pyindex848cf:30577861
nodejswelcome1cf:30587006
fc301958:30595537
282f8724:30602487
gswce2:30602635
3d0df643:30602300

@Rudxain Rudxain changed the title Python "{}" highlighted even when not f-string Python ('{}') highlighted even when not f-string Nov 5, 2022
@alexr00
Copy link
Member

alexr00 commented Nov 22, 2022

Upstream issue is here: MagicStack/MagicPython#245

@alexr00 alexr00 closed this as completed Nov 22, 2022
@alexr00 alexr00 added upstream Issue identified as 'upstream' component related (exists outside of VS Code) grammar Syntax highlighting grammar labels Nov 22, 2022
@Rudxain
Copy link
Author

Rudxain commented Nov 22, 2022

Upstream issue is here: MagicStack/MagicPython#245

Thank you for the link

@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants