Skip to content

Astro tag delimiters participate in bracket colorisation, unlike HTML #39

@machr

Description

@machr

In .astro files, tag delimiters can be colored inconsistently, especially on closing tags like </a>, because Astro
appears to let HTML-style tag brackets participate in bracket colorisation.

This does not appear to be a theme issue.

Repro

  1. Open an .astro file in Zed with bracket colorisation enabled.
  2. Use normal HTML-style tags, for example:
<nav>
  <a href="/">Home</a>
  <a href="/uses/">About</a>
</nav>
  1. Observe that the closing tag delimiters can be colored differently from the opening tag delimiters.

Expected

Astro tag delimiters should behave like HTML so <, </, >, and /> are not recolored by bracket matching / rainbow bracket
logic.

Actual

Astro appears to allow tag delimiters and/or element tag pairs to participate in bracket colorization, which can override
the syntax-theme color and produce inconsistent delimiter colors.

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions