Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect script parse with for and while #4

Open
jcberquist opened this issue Jul 11, 2019 · 0 comments
Open

Incorrect script parse with for and while #4

jcberquist opened this issue Jul 11, 2019 · 0 comments

Comments

@jcberquist
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant