Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

top-level type declarations are categorized differently than let declarations #4

Open
hovsater opened this issue Dec 7, 2022 · 0 comments

Comments

@hovsater
Copy link

hovsater commented Dec 7, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant