The keyword case wouldn't get highlighted properly when there was any non-whitespace character on the same line before it.
Often elm-format puts case on a new line, but not always, for example:
view x =
div
[]
(case x of
[] ->
text "foo"
_ ->
text "bar"
)
Note: This PR might have some other effects on features I am not familiar with. The modified line is in a block of vim script with a comment saying "Folding". It is possible my changes affect folding as well, and I am not entirely sure how to test that.
The keyword
case
wouldn't get highlighted properly when there was any non-whitespace character on the same line before it.Often
elm-format
putscase
on a new line, but not always, for example:Note: This PR might have some other effects on features I am not familiar with. The modified line is in a block of vim script with a comment saying "Folding". It is possible my changes affect folding as well, and I am not entirely sure how to test that.