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

Add macro for character tables #490

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Add macro for character tables #490

merged 2 commits into from
Nov 22, 2024

Conversation

liamwhite
Copy link
Contributor

This mainly reduces unnecessary use of Lazy and allows these character tables to be rendered at compile time.

Copy link
Owner

@kivikakk kivikakk left a comment

Choose a reason for hiding this comment

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

Net LOC loss is such a win! Thank you!

(Have checked all consts have retained their necessary values.)

@@ -135,42 +136,6 @@ struct HtmlFormatter<'o> {
plugins: &'o Plugins<'o>,
}

#[rustfmt::skip]
const NEEDS_ESCAPED : [bool; 256] = [
Copy link
Owner

Choose a reason for hiding this comment

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

🫡

@kivikakk kivikakk merged commit 26b6ca5 into kivikakk:main Nov 22, 2024
19 of 20 checks passed
@liamwhite liamwhite deleted the lazy branch November 22, 2024 13:51
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