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

Match tag only at beginning of a comment line #517

Open
ppo opened this issue Jan 25, 2024 · 0 comments
Open

Match tag only at beginning of a comment line #517

ppo opened this issue Jan 25, 2024 · 0 comments

Comments

@ppo
Copy link

ppo commented Jan 25, 2024

Currently, when a comment line starts with multiple matching tags, it seems to apply all matching rules in order.
Examples:

  • #!?* My comment! is applied, then ?, then *
  • #!? * My comment! is applied, then ?; and * is not (which is perfect)

OK, it allows to combine rules (like BI would apply the bold and italic)… but is that really useful?

I think it would make more sense to only apply the first longest match. Don't you think so?
By "longest match" I mean, for the first example, checking for these tags, in order: !?*, !?, !.

FYI, I notice that because I configured / instead of // and the shebang #!/usr/bin/… became strikedthrough.

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