-
Notifications
You must be signed in to change notification settings - Fork 51
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
Get color from "parent language" if there is no definition for the language itself #252
Comments
Maybe @mcuadros would like also to move this project to go-git organization? |
That would be a simple change to the Line 78 in 697929e
data generated from .yml
A naive approach to implement that is to add a new Originally, enry did not have a use case for colors, so implementation of the |
when enry is hard forked to go-enry organization I could probably implement this |
JFYI I'm not related to the plans of forking enry to a go-enry org. Meanwhile I have just pushed a https://pkg.go.dev/github.com/bzz/enry/v2 and will be happy to assist adding this feature, if needed. |
This has been implemented by @lafriks and is included in latest https://github.com/go-enry/go-enry/releases/tag/v2.3.0 |
Awesome, thank you folks! |
I opened this issue because of a corresponding issue in gitea.
Gitea uses enry for the language bar and some colors can't be fetched.
IMHO Linguist uses groups for this and properties are inherited from the parent group. For example Haml inherits from HTML.
So I guess it would help if the color mapping would work similar.
PS: Just some examples to point out what it looks like in gitea:
The text was updated successfully, but these errors were encountered: