Open pixelcmtd opened 7 months ago
The format you're referring to is already supported by Linguist as Pickle
, assuming it's the same format documented by FileInfo.com. However, it lacks syntax highlighting (which may give the impression of the format not being supported on GitHub), so if you know of a TextMate-compatible grammar (i.e., not a Tree-Sitter grammar), we'd welcome a pull-request to add it, provided it's released under a permissive license. See CONTRIBUTING.md
for more info on that.
EDIT: Never mind, I spoke too soon. I see that this actually refers to a different format entirely, one very similar to many other configuration-first data formats. Shouldn't be too hard to implement as a TextMate grammar, if one doesn't already exist. pkl-vscode
doesn't qualify because the .tmLanguage.json
file (the TextMate grammar proper) is generated at build-time and only distributed as part of a release asset (the VSIX bundle installed by VS Code; e.g., pkg-vscode-0.15.0.vsix
. We could use Apple's Tree-Sitter grammar, but that's handled internally by GitHub staff, and not by Linguist…
@Alhadis I took a stab at putting together a repo here https://github.com/nishtahir/language-pkl. Seems to work well in NovaLightshow . If you guys are ok with this, I can open a PR with it.
Language name
To quote Pkl's homepage:
Not to be confused with Python's “Pickle” serialisation format, stored on-disk using
.pkl
as a file extension.URL of example repository
https://github.com/apple/pkl-k8s-examples
URL of syntax highlighting grammar
https://github.com/apple/tree-sitter-pkl
Editor extensions
Most popular file extensions
.pkl
Detected language
none