Add pkl to GitHub linguist #69

Closed
opened 2025-12-30 01:20:21 +01:00 by adam · 4 comments
Owner

Originally created by @1cedsoda on GitHub (Feb 14, 2024).

GitHub Linguist can detect the language of a file based on different methods.
It is related to syntax highlighting on GitHub and to generate language statistics inside GitHub repos:

image

I think it's a problem, that there already is another format called pickle with the file extension .pkl. Its Python related.

Would be great to add pkl grammar to linguist as it improves code readability on GitHub.

Linguist has quantitative requirements of how many public files of a specific language are hosted on GitHub, before they consider adding it, which might have not been reached yet.

Originally created by @1cedsoda on GitHub (Feb 14, 2024). [GitHub Linguist](https://github.com/github-linguist/linguist) can detect the language of a file based on different methods. It is related to syntax highlighting on GitHub and to generate language statistics inside GitHub repos: <img width="167" alt="image" src="https://github.com/apple/pkl/assets/29167146/1d1a0380-1bcd-467b-97a0-85f56838f2c4"> I think it's a problem, that there already is [another format called pickle](https://github.com/github-linguist/linguist/blob/559a6426942abcae16b6d6b328147476432bf6cb/lib/linguist/languages.yml#L5206-L5212) with the file extension `.pkl`. Its Python related. Would be great to add pkl grammar to linguist as it improves code readability on GitHub. Linguist has quantitative requirements of how many public files of a specific language are hosted on GitHub, before they consider adding it, which might have not been reached yet.
adam closed this issue 2025-12-30 01:20:21 +01:00
Author
Owner

@bioball commented on GitHub (Feb 15, 2024):

It's in the works!

@bioball commented on GitHub (Feb 15, 2024): It's in the works!
Author
Owner

@darvld commented on GitHub (Feb 25, 2024):

Support for Pkl in Linguist is being added by this PR. We just noticed this issue was open now so I'm adding a reference here for tracking.

@darvld commented on GitHub (Feb 25, 2024): Support for Pkl in Linguist is being added by [this PR](https://github.com/github-linguist/linguist/pull/6718). We just noticed this issue was open now so I'm adding a reference here for tracking.
Author
Owner

@HT154 commented on GitHub (Jun 11, 2024):

Pkl support landed in linguist with https://github.com/github-linguist/linguist/pull/6730 and should be broadly available on github.com now.

@HT154 commented on GitHub (Jun 11, 2024): Pkl support landed in linguist with https://github.com/github-linguist/linguist/pull/6730 and should be broadly available on github.com now.
Author
Owner

@bioball commented on GitHub (Jun 11, 2024):

Closing this one as it's now completed.

@bioball commented on GitHub (Jun 11, 2024): Closing this one as it's now completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#69