-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Short array list syntax not correctly tokenized if short array is the first content in a file #1971
Comments
…short array is the first content in a file
This happened because the short array was the first content in the file and the loop wasn't going all the way back to the first token. It would have worked if there was even a space before the open tag, so this error looks pretty localised. |
@gsherwood Thanks for the quick fix. I actually extrapolated the example from a larger file. I'll see if I can figure out the determining factor when in a larger context to create a small reproducible example, or maybe this has already fixed that too. I'll let you know how I fare. |
Thanks. I'll close this report because it's now really specific, so please create another one if you find that code again. |
The outer square brackets in the below example are tokenized as
T_OPEN_SQUARE_BRACKET
andT_CLOSE_SQUARE_BRACKET
instead of asT_OPEN_SHORT_ARRAY
andT_CLOSE_SHORT_ARRAY
.is tokenized as follows - take note of token 2 and 9:
The text was updated successfully, but these errors were encountered: