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

fix out of range panic #2112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix out of range panic #2112

wants to merge 1 commit into from

Conversation

AdamKorcz
Copy link

I am getting a case where index is 0 and the line therefore attempts to access tokens[-1].

Signed-off-by: Adam Korczynski <[email protected]>
@mikefarah
Copy link
Owner

Thanks for the PR! Are you able to add a test as well? Probably lexer_participle_test would be a good spot...
Otherwise if you let me know what the scenario was, I can add one myself as well.

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

Successfully merging this pull request may close these issues.

2 participants