elm-syntax-highlighting
elm-syntax-highlighting copied to clipboard
top-level type declarations are categorized differently than let declarations
Given the following code:
helloStr : String
helloStr = "hello, world"
sumList : List Int -> Int
sumList =
let
helper : Int -> List Int -> Int
helper sum xs =
case xs of
head :: tail -> helper (sum + head) tail
[] -> sum
in
helper 0
We can observe that types in top-level declarations are categorized as storage.type.elm while types in let declarations are categorized as constant.other.elm.
This is somewhat unfortunate when using a color scheme such as Alabaster as it causes inconsistent highlighting.