Skip to content

reason-mode tries to indent lines following lines that don't have a semicolon #50

@smabie

Description

@smabie

For example, after a line that doesn't have a semicolon (like an open statement), it indents. Also, the mode is quite inflexible in regards to how it wants your code to look, like it requires switch statements to be on their own line or else it indents things incorrectly.

Also, it doesn't indent fun expressions properly. For a switch on it's own line it indents like this:

switch(5) {
| x =>
  x + 1
}

for fun:

fun
| x =>
x + 1

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