Skip to content

Incorrect script parse with for and while #4

Description

@jcberquist

It looks like the script parser does not currently look explicitly for while and for keywords, and the result seems to be that it doesn't handle script with those keywords when there are nested braces:

component {

    function test() {
        for ( x in y ) {
            if ( true ) {
            }
        }
    }

    // comment
}

With the above component, the parser identifies the end of the component and the function blocks one } too early.

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