Skip to content

Emacs mode fails to indent let followed by if expression #6932

Closed

Description

This piece of code doesn't auto-indent reasonably using the emacs mode:

    let message =
    if is_correct(5) {
    "yes"                                                       
    } else {
        "no"                                                        
    };

Not sure what is going on here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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