Skip to content

cases of case statement in parenthesis indents to opening paren #34

Open
@leg7

Description

@leg7

This happens in lambdas but I found that it happens more generally when the case statement is in parens.
This doesn't happen when you only have an opening parenthesis but since I use a plugin that inserts parenthesis in pairs (typing ( in insert mode gives you (_) where _ is your cursor) it happens all the time.

-- Expected
case inp of
     1 -> True
     2 -> False

-- Actual
(case inp of 
1 -> True
2 -> False)

-- Expected
case inp of 1 -> True
            2 -> False

-- Actual
(case inp of 1 -> True
2 -> False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions