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

Support specifying ranges of alternate values #107

Merged
merged 2 commits into from
Feb 23, 2023
Merged

Support specifying ranges of alternate values #107

merged 2 commits into from
Feb 23, 2023

Conversation

illicitonion
Copy link
Owner

For simplicity, we require both ends of the range to be specified an literals.

This only works if the complex-expressions feature is enabled, as syn can't parse ranges without its full feature being enabled, which significantly increases compile times. We give a useful error if you attempt to use ranges without this feature being enabled.

Fixes #101

@illicitonion
Copy link
Owner Author

Looks like tests around detecting why things failed and reporting them are failing in ways I completely expected, but which weren't happening locally to me for some reason - will fix up soon!

For simplicity, we require both ends of the range to be specified an
literals.

This only works if the `complex-expressions` feature is enabled, as
`syn` can't parse ranges without its `full` feature being enabled, which
significantly increases compile times. We give a useful error if you
attempt to use ranges without this feature being enabled.
Pre-1.0.4 it pulled in syn with the "full" feature, which broke some of
our tests for testing when full is disabled, in minimal versions mode.
@illicitonion illicitonion merged commit 3638efa into main Feb 23, 2023
@illicitonion illicitonion deleted the ranges branch February 23, 2023 22:46
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.

Allow use of range values for alternatives
2 participants