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

Correctly handle unicode ranges #26

Merged
merged 5 commits into from
Jan 4, 2025
Merged

Correctly handle unicode ranges #26

merged 5 commits into from
Jan 4, 2025

Conversation

hildjj
Copy link
Owner

@hildjj hildjj commented Jan 3, 2025

This should correctly generate UTF-16 ranges for
Peggy from any valid ABNF range.
Fixes #25.

@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (32d9245) to head (15f1402).

Additional details and impacted files
@@            Coverage Diff             @@
##              main       #26    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            4         4            
  Lines         2683      2804   +121     
==========================================
+ Hits          2683      2804   +121     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This should correctly generate UTF-16 ranges for
Peggy from any valid ABNF range.
Fixes #25.
@@ -5,3 +5,4 @@ examples/*.peggy
examples/*.pest
node_modules
t.abnf
.cert/
Copy link
Contributor

Choose a reason for hiding this comment

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

unrelated?

Copy link
Owner Author

Choose a reason for hiding this comment

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

yes, its unrelated, but intentional. I've started using hostlocal in local workflows.

@hildjj
Copy link
Owner Author

hildjj commented Jan 4, 2025

OK, this is as good as this patch is going to get. I'll take another look at it in the late morning (Denver time) before I land it.

@srl295
Copy link
Contributor

srl295 commented Jan 4, 2025 via email

@hildjj
Copy link
Owner Author

hildjj commented Jan 4, 2025

I was wrong; this is a lot more readable, IMO.

@hildjj hildjj merged commit 2b18852 into main Jan 4, 2025
4 checks passed
@hildjj hildjj deleted the fix-25 branch January 4, 2025 20:58
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.

"0x10000 does not fit in UTF-16"
3 participants