-
Notifications
You must be signed in to change notification settings - Fork 856
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 parsing with mixed spaces and tabs #1000
Comments
The loose parser is indentation-sensitive. Passing it misindented code will cause it to parse the code incorrectly, and it seems the issue in the example code isn't consistently indented, regardless of whether spaces and tabs are mixed—the second line has a tab and a space, the third only a tab. |
o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
acorn-loose
v8.0.1
Parsing goes wrong when you have mixed spaces and tabs.
Example:
Expected:
Actual:
For some reason declaration of variable "asd" moved to the main body of the program, but it should be inside of the function declaration.
The text was updated successfully, but these errors were encountered: