Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extraneous colors in Gleam type highlighting #1054

Open
1 task done
facundoolano opened this issue Feb 24, 2025 · 0 comments
Open
1 task done

Extraneous colors in Gleam type highlighting #1054

facundoolano opened this issue Feb 24, 2025 · 0 comments
Labels

Comments

@facundoolano
Copy link

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
}
@facundoolano facundoolano changed the title <title> Extraneous color in Gleam type highlighting Feb 24, 2025
@facundoolano facundoolano changed the title Extraneous color in Gleam type highlighting Extraneous colors in Gleam type highlighting Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant