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

Fixed comments lexing #256

Merged
merged 1 commit into from
Feb 24, 2020
Merged

Fixed comments lexing #256

merged 1 commit into from
Feb 24, 2020

Conversation

Razican
Copy link
Member

@Razican Razican commented Feb 24, 2020

This fixes a bug in comment lexing, where the initial / was not being included in the comment token, and the line number and column numbers were wrong. This would break the numbering of a whole file if there was a multiline comment.

Also, I have added the line and column numbers to the parsing errors, and properly printed them in case of failure, instead of panicking with a debug message.

This should make debugging much easier.

@Razican
Copy link
Member Author

Razican commented Feb 24, 2020

Oh, and I forgot to add that this PR should allow to parse multiple files in the CLI, so that we can add one after the other to the executor. This helps in #12. Please, let me know if you want any of this as a different PR.

Copy link
Member

@jasonwilliams jasonwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me thanks @Razican !

@jasonwilliams jasonwilliams merged commit 12c99e1 into boa-dev:master Feb 24, 2020
@Razican Razican deleted the fix_comments branch February 24, 2020 19:33
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