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

Feature/named capturing groups #64

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

siburb
Copy link

@siburb siburb commented Jul 14, 2020

Added two new properties to Style to allow us to iterate through the named capturing groups in the regex, and also to retrieve styles by name.

This allows us to apply any other style to a named sub-range of the matched range.

Added an example for h3 to the 'one-dark-custom' style.

#28

@siburb
Copy link
Author

siburb commented Jul 15, 2020

Whilst this works, it doesn't allow the named groups to inherit the font/traits/size of the parent. Hold off on reviewing it for now and I'll do some work on that.

@ruddfawcett
Copy link
Owner

This looks great thus far — thanks, @siburb.

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.

None yet

2 participants