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: disallow tokens that match the empty string #2446

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

amaanq
Copy link
Member

@amaanq amaanq commented Jul 31, 2023

This keeps the behavior the same as non-token rules, and prevents an infinite loop bug

Closes #98
Closes #1111
Closes #1271
Fixes the memory explosion cases in #1156

@amaanq amaanq force-pushed the disallow-empty-tokens branch 5 times, most recently from a0ce0bc to 810cf77 Compare July 31, 2023 16:20
@Vicbiger21

This comment was marked as spam.

@ahlinc
Copy link
Contributor

ahlinc commented Aug 1, 2023

@amaanq could you add grammar tests for cases that were issues before? To avoid regressions in the future.

This keeps the behavior the same as non-token rules, and prevents an infinite loop bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants