The syntax highlighting for when has being ambiguous and confusing.
This PR fixes the highlighting by removing the special highlighting for when in def and defp
Also, whens following defmacro and defmacrop are not special-cased, they look like "After".
Stop special-casing `when`
The root problem is that defs spanning multiple lines are not recognized as part of the same expression.
E.g. wrong variable highlighting of var2 in:
So the inconsistent when highlighting is a symptom of the bigger underlying bug
@talklittle I would consider that as a separate issue, because when in any places other than def and defp is highlighted as in "After", at least this one can be consistent. But you are right, not being able to go multi line is a bigger issue.