Skip to content

Detect correct missing open brace #53

Description

@jkeiser

Right now, this will report closing { without open } on the end brace, which makes it really hard to find out where the actual error was. Indentation makes it pretty clear, so we should modify the rules to make it better:

MyClass: {
    Function1: {
        if (:x == :y) # this is the line with the missing {
           10
        } # error SHOULD be reported here
    }
    Function2: {
        :x + :y
    }
} # error is reported here

Activity

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

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