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
RGB color on tree-sitter highlight #758
Comments
@maxbrunsfeld are you accepting PRs? seems like this could be a fairly focused change in |
Right now, the RGB ones only work with ‘—html’. Do many terminals support RGB colors? I’m not familiar with that. But if there’s a way that makes sense to render it to the terminal, and isn’t too complicated, I’m open to it. |
I looked at what some terminal coloring crates do to support RGB and it seems like they just approximate it. Here's a crate https://crates.io/crates/ansi_colours, and here's one implementation I found that's only a few lines long https://github.com/ChrisB9/terminal_color_builder/blob/main/src/color.rs#L146-L152 |
oh yeah, that level of complexity is totally fine by me 👍 . That seems reasonable for this purpose. |
@maxbrunsfeld As I know last several years there happen wide adoption of 24bit true colors in plenty of terminals. |
It seems like the But it also turns out that the crate that tree-sitter is currently using, |
When calling
tree-sitter highlight file.ext
the following error is produced:When color is a number or an ANSI name it works.
The text was updated successfully, but these errors were encountered: