Skip to content

Scala for indent #6406

Open
Open
@thoradam

Description

@thoradam

In Scala indents don't work for empty fors because they aren't fully parsed at that point. To illustrate, if I'm here

def wat() = for {|}

and press enter it's not indented properly because at this point it's not fully parsed as a (for_expression) is TS and just comes up as an (ERROR). If I press enter inside a fully typed out for expression (with the yield and at least one <-) it works.

Matrix discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-indentArea: IndentationA-language-supportArea: Support for programming/text languagesC-enhancementCategory: ImprovementsE-easyCall for participation: Experience needed to fix: Easy / not muchE-has-instructionsCall for participation: Has instructions for fixing the issue and opening a PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions