If you want to add a language, find a TextMate Grammar file for it (usually easily found in vscode extensions). You'll need to add an entry to languages/index.js as well ...
This repository serves both as the grammar for github/linguist (Github's site wide syntax highlighting) and as a standalone Sublime Text package. Install https ...