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

Improve architecture for FormattingSpecs #88

Open
jgm opened this issue Feb 12, 2022 · 0 comments
Open

Improve architecture for FormattingSpecs #88

jgm opened this issue Feb 12, 2022 · 0 comments

Comments

@jgm
Copy link
Owner

jgm commented Feb 12, 2022

Instead of a list of [FormattingSpec], let's have a FormattingSpecMap.
Define Monoid for this so that if you have two formatting specs for the same character, one a single-matcher and the other a double-matcher, the right thing happens.
See #87 for motivation.
Currently we build the FormattingSpecMap properly in Inlines, but it might be more efficient just to make this the data structure defined in the syntax.

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

No branches or pull requests

1 participant