Skip to content

Type declaration in do-binding breaks highlighting #52

@andreasthoelke

Description

@andreasthoelke

In the following example Just 2 is highlighted differently from Just 1:

test = do
  n1 ← Just 1
  n2  IntJust 2
  (n3  Int) ← Just 3
  n4  IntJust 4
  pure n2

It seems the type declaration in the do-binding breaks the highlighting of all identifiers in the following expression.
The highlighting does not break, when the optional bracket around
the type declaration is used, i.e. (n3 ∷ Int) ← Just 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions