zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

Provide grammar to Linguist project

Open Lordfirespeed opened this issue 2 years ago • 4 comments

The Linguist project is what GitHub uses for language detection and third-party grammar selection.

We can enable syntax highlighting for the ZenStack language on GitHub by providing a language grammar to this project.

Lordfirespeed avatar Nov 11 '23 21:11 Lordfirespeed

@Lordfirespeed, thanks for the info. However, there is a bar for them to accept a new extension, which I think is still far for ZenStack:

https://github.com/github-linguist/linguist/issues/5756

jiashengguo avatar Nov 12 '23 11:11 jiashengguo

Maybe we're not too far from this rule?

at least 2000 files per extension indexed in the last year (the number you see at the top of the search results), unless the extension is expected to only occur once per repo, then 200 files.

ymc9 avatar Nov 14 '23 15:11 ymc9

I agree, the language isn't far off that rule - I think it's at around 120 - although it's unclear whether the listed rules are OR or AND

Lordfirespeed avatar Nov 15 '23 13:11 Lordfirespeed