Skip to content

Extraneous colors in Gleam type highlighting #1054

Closed
@facundoolano

Description

@facundoolano

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When highlighting Gleam code, the type names between parenthesis and in function returns have their first letter with a different font color an background. I would expect those names to either have the same color as the type declarations without parentheses, or to not be colored.

To Reproduce

Example in chroma playground

To reproduce it in the command line:

chroma -l gleam --html <source>

Where source is:

pub type Table = Subject(Message)

pub type Message {
  RegisterFeed(String, Poller)
}

pub fn start() -> Table {
  todo
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions