better-comments icon indicating copy to clipboard operation
better-comments copied to clipboard

Match tag only at beginning of a comment line

Open ppo opened this issue 1 year ago • 0 comments

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.

ppo avatar Jan 25 '24 18:01 ppo