gitgithubdslgithub-linguist

Is it possible to define own syntax on a GitHub repository?


I'm writing a small DSL, and I'm curious if it's possible to somehow show it in a language bar above the repository source where all languages are listed by percentage of using or GitHub administration needs to allow that language?

For example, I'm writing a Ruby project with the DSL called Puppy, and I want to show the percentage of all files with the .puppy extension beside other languages.


Solution

  • Looks like you need add your language to Linguist library (https://github.com/github/linguist) which GitHub utilize to recognize source code languages.

    according to: https://help.github.com/articles/my-repository-is-marked-as-the-wrong-language/