Skip to content

project: Fix CSS nested selector document highlights#52622

Open
MoonMao42 wants to merge 1 commit intozed-industries:mainfrom
MoonMao42:fix/css-nested-document-highlights-51483
Open

project: Fix CSS nested selector document highlights#52622
MoonMao42 wants to merge 1 commit intozed-industries:mainfrom
MoonMao42:fix/css-nested-document-highlights-51483

Conversation

@MoonMao42
Copy link
Copy Markdown

@MoonMao42 MoonMao42 commented Mar 28, 2026

Closes #51483

When the cursor is on a nested tag selector inside a selector chain like:

div {
  div p {
    color: red;
  }
}

Zed currently highlights the parent div as if it were part of the same symbol.

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 28, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @MoonMao42 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Mar 28, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator bot requested review from a team, Veykril, cameron1024 and osiewicz and removed request for a team March 28, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSS LSP recognises "nested tag selector" as the "parent tag selector"

2 participants