Bad Rust syntax highlighting

Discourse uses highlightjs.org for syntax highlighting. I tried putting your snippet into their demo at Demo - highlight.js and it seems like the same issue is present:

So the best thing is probably to report the issue upstream to them (if there isn’t already a matching issue)

8 Likes