Skip to content

Incorrect colour shown for the second double-backticked literal in a comma-separated list of pairs in a specific form #48

Description

@jonathandung

Type: Bug

I am making a table of the audit events raised by my python library mimicking this page. Within a list-table entry (not sure if that's relevant), when I type in the arguments of the audit events and their corresponding python types in the following format:

.. list-table: foobar
  :header-rows: 1

  * - A
    - B
    - C
  * - spam
    - ``arg1``: :class:`int`, ``arg2``: :class:`str`, ``arg3``: :class:`bytes`, ``arg4``:  :class:`float`
    - ham

The second argument and the type of the first argument show in the wrong colour. I expected `int` to be blue, the colour of other directive contents; the comma to be white (I'm in dark mode), and ``arg2`` to be orange, the same colour as other double-backticked literals. However, they all displayed in pink, which is the colour of directive roles.

This issue is especially strange since the other parts of the text were highlighted correctly.

Extension version: 1.5.4
VS Code version: Code 1.111.0 (ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb, 2026-03-06T23:06:10Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x9a49 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.6737 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8246
Machine model name:
Machine model version:
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_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 7.85GB (0.95GB free)
Process Argv --crash-reporter-id 9453c078-702b-4b0c-be82-802577994672
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsdeactivate2:31464701
cloudbuttont:31379625
42190218_ostrepl:31403339
ec5jj548:31422691
cp_cls_t_966_ss:31454198
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31491949
38bie571_auto:31429954
cp_cls_t_1081:31454832
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
534a6447:31496642
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
dfc2j404:31500885
cpptoolson-v2:31475363
i2gc6536:31499202
ghj88844:31499326
ec1eg703:31491645
ddid_c:31478207
getcmakediagnosticson:31489824
cp_cls_c_1082:31491634
j0d79568:31499440
748c7209:31497895

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions