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

Wrong syntax highlight for files with quotes #11

Open
alexr00 opened this issue Aug 22, 2022 · 1 comment
Open

Wrong syntax highlight for files with quotes #11

alexr00 opened this issue Aug 22, 2022 · 1 comment

Comments

@alexr00
Copy link

alexr00 commented Aug 22, 2022

Type: Bug

VS Code version: Code 1.70.1 (6d9b74a70ca9c7733b29f0456fd8195364076dda, 2022-08-10T06:09:15.055Z)
OS version: Linux x64 5.18.17-lqx1.0.fc36.x86_64
Modes:

For a python setup.cfg file, when defining inline-quotes as string, the highlighted text is broken after the settings

Expected:
image

Actual result:
image

Notice that everything else from line 5 is now at the same color

File content:

[flake8]
exclude = .git, __pycache__, docs, build, dist, .idea, .pytest_cache, .vscode

# due to black quoting everything with "
inline-quotes = "

# from black documentation
extend-ignore = E203
System Info
Item Value
CPUs AMD Ryzen 7 PRO 4750U with Radeon Graphics (16 x 1700)
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
Load (avg) 1, 1, 1
Memory (System) 30.59GB (2.68GB free)
Process Argv --unity-launch --crash-reporter-id ecae8924-a6bf-48d7-8694-1e966cffbe1d
Screen Reader no
VM 0%
DESKTOP_SESSION plasma
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE wayland
Extensions (16)
Extension Author (truncated) Version
arepl alm 2.0.3
python-environment-manager don 1.0.4
python-ultiextension-pack eli 1.6.0
python-ultisnippets eli 2.7.0
code-runner for 0.11.8
restructuredtext lex 189.1.0
vscode-docker ms- 1.22.1
python ms- 2022.12.0
vscode-pylance ms- 2022.8.20
jupyter ms- 2022.7.1102252217
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.9
remote-containers ms- 0.245.1
makefile-tools ms- 0.5.0
autodocstring njp 0.6.1
vscodeintellicode Vis 1.2.22
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30542924
vsaa593cf:30376535
pythonvs932:30410667
wslgetstarted:30449410
cppdebug:30492333
pylanb8912:30545647
vsclangdf:30486550
c4g48928:30535728
d7fjc500:30543455
dsvsc012cf:30540253
azure-dev_surveyone:30548225

Originally from @luminoso in microsoft/vscode#158407

@alexr00 alexr00 changed the title Wrong syntax highlight for .cfg files with quotes Wrong syntax highlight for files with quotes Aug 22, 2022
@bjtho08
Copy link

bjtho08 commented Jun 13, 2023

@infininight @sorbits @Soryu has this repo been abandoned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants