Skip to content

Rainbow bracket bugs in Markdown #46420

@JosephTLyons

Description

@JosephTLyons

Reproduction steps

Case 1:

  1. Insert 100 lines with []
  2. Notice that color changes
Image

Note, this doesn't happen for me if you use 50 lines or fewer

Image

Case 2:

I'm assuming this is the same bug, but am including just in case it is not

  1. Insert 100 lines with []()
  2. Notice that color changes at line 51
Image

Current vs. Expected behavior

Current behavior: Bracket colors change, despite there being no nesting of brackets
Expected: I expect the bracket colors to remain the same

Zed version and system specs

Zed: v0.220.0+nightly.2071.c17b48782bf47c94b958775d456e318d3a52ab1a (Zed Nightly c17b487)
OS: macOS 26.1
Memory: 64 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Labels

area:editor/bracketsrainbow bracketsfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions