Chroma YAML lexer issue

In the following syntax highlighted yaml example, trailing punctuation is not colored correctly. This seems to happen with all themes.

Screenshot 2026-09-11 at 12.12.08 PM

Has anyone run into this before? If so, is there a fix? I’ve tried to format the yaml in different ways with no luck.

foo:
  bar: [{ abc: { names: [workerA, workerB] } }]
  baz: [{ xyz: workerC }]

This is an upstream bug, reproducible using their playground:

Please create an upstream issue and cross-reference to this topic.