The Crystal Programming Language Forum

GH syntax highlighing

Hello,

Didn’t know where exactly to ask this. I noticed GitHub’s syntax highlighting of crystal has an issue with the %|my string| format for pipe-delimited percent string literals.

See this example: https://gist.github.com/aarongodin/85902b2a78272fcb812964e563479df3

Seems like only pipe has the issue. How does the community manage the syntax highlighting?

According to Github’s linguist repo¹ they use this here for crystal syntax highlighting:

You might want to file an issue (or better send a PR) there. A couple of member of the crystal-lang-tools organization on GH are here on this forum as well. They might be able to help you out if needed.

[1] https://github.com/github/linguist/blob/master/vendor/README.md

1 Like

Awesome, thanks for the reference. The issue doesn’t appear in Atom for me using the latest package. github/linguis says:

Grammars are updated every time we build the Linguist gem so upstream bug fixes are automatically incorporated as they are fixed.

So that tells me it should be fixed eventually.