Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Fix edge case in range syntax sugar #2255

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

njhale
Copy link
Member

@njhale njhale commented Oct 17, 2023

Treat mixed case and backwards ranges (e.g. A-z, 0-A, z-a) as
individual characters in the given set. This simplifies the UX and
makes ranges easier to reason about.

@njhale
Copy link
Member Author

njhale commented Oct 17, 2023

Just thought of some problems with this fix. Fixing the fix now.

@njhale njhale force-pushed the fix-gen-secret-sugar branch from c662458 to 23a4f3b Compare October 17, 2023 21:07
Treat mixed case and backwards ranges (e.g. `A-z`, `0-A`, `z-a`) as
individual characters in the given set. This simplifies the UX and
makes ranges easier to reason about.

Signed-off-by: Nick Hale <[email protected]>
@njhale njhale force-pushed the fix-gen-secret-sugar branch from 23a4f3b to ef36bde Compare October 17, 2023 21:28
Copy link
Contributor

@keyallis keyallis left a comment

Choose a reason for hiding this comment

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

Would love to have a chat about the idea of a removelist for runes rather than defining the specific ranges we'd like to support

@njhale njhale merged commit 5763b65 into acorn-io:main Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants