You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a PR — here are my thoughts so far:
require, import and with are simply missing; added.
Module names can be compound (perhaps other names too?); allow . as part of identifier.
@moduledoc, @doc and @typedoc appear to be defined as module attributes, not sure why it's wrong to highlight them as such?
As far as I can tell by looking at the CSS class reference and other languages, highlight.js philosophy is not to highlight operators or namespaces. If that's not correct perhaps a maintainer can correct me?
Found an extra bug where :: and neighbors gets highlighted as symbol; fixed.
If we can clarify my questions above I can open a PR with the fixes. Thanks!
Hi Highlight team,
Here is an example showcasing the issues of Elixir highlighting. It's taken from reviewable.io UI that uses highlight.js under the hood.
First, highlight.js
Second, my VSCode editor
![screen shot 2018-09-05 at 10 25 59 am](https://user-images.githubusercontent.com/2036827/45110193-70759e80-b0f6-11e8-8739-4da891350a34.png)
(there's some custom coloring going on here but I'll focus on the general issues)
What's wrong in highlight.js
defmodule
declaration (different colors when it should be monochrome)require
andimport
statements are not highlighted.@moduledoc
,@doc
,@typedoc
incorrectly highlighted as module attributes.<-
and|>
not highlighted.with
statement not highlighted.Thanks for looking into this!
The text was updated successfully, but these errors were encountered: