Closed NJichev closed 5 years ago
Hmm, there is no difference for me.
Both, test:
and status:
are highlighted as elixirAtom
, if I put that single line in an .ex file.
What does :echo synIDattr(synID(line("."), col("."), 1), "name")
report if the cursor is over the key?
It says elixirExUnitMacro.
Here's the extracted piece of code:
defmodule TestSuite.Test do
@typep f :: (() -> any)
@typep status :: :pending | :failed | :skipped | :timed_out | :passed
@typep tags :: [atom]
@type t :: %Test{
test: f,
status: status,
tags: tags,
}
end
Could be a PEBKAC problem :D
Well, I can reproduce it with that code. I'll look into it.
Got following type not syntax highlighted as an atom:
The
test:
key is different from status(from ExUnit I suppose)