Skip to content

Remove unnecessary unic dependencies and add \N{} unicode name escapes #1869

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

Merged
merged 4 commits into from
Apr 16, 2020

Conversation

coolreader18
Copy link
Member

Removing all of the unused unicode tables brought down my binary size from 24M to 18M !

Copy link
Contributor

@palaviv palaviv left a comment

Choose a reason for hiding this comment

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

Looks great.

@@ -475,6 +475,37 @@ where
u8::from_str_radix(&octet_content, 8).unwrap() as char
}

fn parse_unicode_name(&mut self) -> Result<char, LexicalError> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a unit test for this?

@coolreader18 coolreader18 merged commit 8276803 into master Apr 16, 2020
@coolreader18 coolreader18 deleted the coolreader18/unicode-name-escape branch May 5, 2020 15:27
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.

2 participants