Closed AldaronLau closed 2 years ago
I think the regex are in error and were probably intended to be ^\s*//\s*todo\b
, as in:
this way both //todo
and // todo
would work fine.
@xmo-odoo is right ! I fixed it, it will be in the next release. If you're still alive (and still using cargo-todo) you can either delete the config file so the new default will be generated or update it by yourself. Sorry for the latency, I'm really busy irl. Don't hesitate to do pull requests if you have any other issue. Thanks
The default regex file:
matches
//todo
,//stodo
,//sstodo
,//ssstodo
, etc.//fix
,//sfix
,//ssfix
,//sssfix
, etc.//fixme
//sfixme
,//ssfixme
,//sssfixme
, etc.What I'm wondering is why that's the default. I have never seen anyone use
//stodo
before. I think something like// todo
should be matched by default. Unfortunately, when I change the regex I getinstead of (with the default regex and no space):
Here's the regex file (
~/.cargo/todo_config
) I used: