-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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(lexer): do not treat '#bun' in a url as a pragma #15888
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.
the fix should just remove the bun_pragma field from the lexer entirely. right now bun is checking every comment for @bun
when it only needs to check the first one in the file.
Doing this requires us to have some lexing logic in |
We could have a 'has_seen_any_comments' boolean and then not check after that |
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.
one nitpick
…o don/parse/fix/pragma-url
This reverts commit 1d9fbe7.
Co-authored-by: Don Isaac <don@bun.sh> Co-authored-by: DonIsaac <DonIsaac@users.noreply.github.com>
What does this PR do?
How did you verify your code works?
Added test cases