Currently using Prism for code highlighting and the filename extension is used instead of the language name. Files for the Crystal programming language named with the extension .cr (e.g. example.cr) are not recognized in my project because cr is not in the aliases and I would have to manually hardcode crystal (after detecting the .cr extension).
This PR adds the alias cr so it will map back to crystal language.
Currently using Prism for code highlighting and the filename extension is used instead of the language name. Files for the Crystal programming language named with the extension
.cr
(e.g.example.cr
) are not recognized in my project becausecr
is not in the aliases and I would have to manually hardcodecrystal
(after detecting the.cr
extension).This PR adds the alias
cr
so it will map back tocrystal
language.For reference, compare with Highlight.js (they have the alias): https://github.com/highlightjs/highlight.js/blob/0d7061cd0b098c3a9ecda98163111f4a23aaa2f6/src/languages/crystal.js#L306