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

Highlighter enhancement #2

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

Highlighter enhancement #2

wants to merge 11 commits into from

Conversation

AgentHagu
Copy link
Owner

@AgentHagu AgentHagu commented Dec 19, 2024

This PR is meant to address the issue MarkBind#2573 in the main upstream repo. In summary, it allows users to now optionally highlight leading whitespace, giving them more options when using MarkBind.

Users can now add an optional + after their highlight index specifier to indicate that the index should be inclusive of leading whitespace. For example, previously 1[:4] would highlight the abcd in abcd. But now, by instead using 1[:4]+, MarkBind will highlight ab in abcd (i.e. it will also highlight the first 2 spaces in the string).

Screenshot:
image

AgentHagu and others added 11 commits December 19, 2024 16:23
dangerfile.js violates eslint rules at the moment, perhaps due to
something wrong with setup.
Update regex and parsing of HighlightRuleComponent to support
"+" symbol, which indicates highlighter index specifiers should
be inclusive of preceding whitespace of the line.
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.

1 participant