todo-tree
todo-tree copied to clipboard
Faulty default regex - Takes $tag when preceded by tabs/spaces
As the title says the issue is this:

It could be fixed by setting the default regex to this: (//|#|<!--|;|/\*|^|^[ \t]*(-|\d+.))[^\s]*($TAGS)
(If this change is made at this point you could add every QOL pulls like #481 if they don't break stuff)
After:

PS: I know that updating the default tags could cause issues but this is a bug and not a support for a language
There's a pull request about this: #639 It has a better regex than mine