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

Add tryConsume() helper method #94

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Add tryConsume() helper method #94

merged 1 commit into from
Dec 1, 2023

Conversation

knutwannheden
Copy link
Contributor

To avoid issues with unexpected tokens, it would be better if we would try to avoid using sourceStartsWithAtCursor(). As an alternative I added tryConsume() and tryConsumeWithPrefix().

To avoid issues with unexpected tokens, it would be better if we would try to avoid using `sourceStartsWithAtCursor()`. As an alternative I added `tryConsume()` and `tryConsumeWithPrefix()`.
Copy link
Contributor

@traceyyoshima traceyyoshima left a comment

Choose a reason for hiding this comment

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

LGTM, Sounds good!

@knutwannheden knutwannheden merged commit 3b3dbd0 into main Dec 1, 2023
3 checks passed
@knutwannheden knutwannheden deleted the try-consume-helper branch December 1, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants