elm-syntax-highlighting icon indicating copy to clipboard operation
elm-syntax-highlighting copied to clipboard

top-level type declarations are categorized differently than let declarations

Open hovsater opened this issue 3 years ago • 0 comments

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.

Screenshot 2022-12-07 at 19 08 29 Screenshot 2022-12-07 at 19 08 44

This is somewhat unfortunate when using a color scheme such as Alabaster as it causes inconsistent highlighting.

hovsater avatar Dec 07 '22 18:12 hovsater