I noticed that .rhai files don't have any highlighting on github, and that no issues exist about this yet. Github's highlighting is powered by github/linguist, and they allow people to submit new languages if they're popular enough (used in >200 repos). Unfortunately github's search is pretty broken atm so I'm not sure how many repositories rhai is in.
Until github supports it, throwing this in a repo's .gitattributes will highlight it by pretending it's rust:
*.rhai linguist-language=Rust
I noticed that
.rhaifiles don't have any highlighting on github, and that no issues exist about this yet. Github's highlighting is powered by github/linguist, and they allow people to submit new languages if they're popular enough (used in >200 repos). Unfortunately github's search is pretty broken atm so I'm not sure how many repositories rhai is in.Until github supports it, throwing this in a repo's
.gitattributeswill highlight it by pretending it's rust: