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
Feat: add shebang handling to lexer and parser #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR!
Looks good to me either than a few comments 👍
1: Yes any changes to the lockfile should be committed |
@RDambrosio016 Now I'm a bit wondering if there should be a test for a case where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a small changelog thing and could you add some tests for #
and #
not oncurring at the start?
Thanks again. Added more tests, and updated the changelog. |
LGTM, thank you |
Closes #26
This PR adds handling of shebang for lexer and parser, and also updates the corresponding change logs.
I'm not sure of the following things:
cargo xtask syntax
after fixingxtask/src/ast.rs
, I sawCargo.lock
was updated as well. I committed the change to git. Should the change ofCargo.lock
be committed?Lexer::strip_shebang
for this patch, instead created the other methodLexer::read_shebang
. ShouldLexer::strip_shebang
be removed?