Custom todo filter

I'm trying to setup a TODO filter to match something like

int x = 4; // todo (es) finish

I tried "everything" but cannot make it work. I'm not sure why something like

\btodo\b.es.\b.*

does not work.

Thanks in advance for any help on this.

etienne

2 comments

etienne wrote:

I'm trying to setup a TODO filter to match something like

int x = 4; // todo (es) finish

I tried "everything" but cannot make it work. I'm not sure why something like

\btodo\b.es.\b.*

does not work.

Thanks in advance for any help on this.

etienne


"\b" does not match whitespace, it matches the boundary between "\w" and
"\W" (a "word boundary"), so if you want to match the space after
"todo", you should replace that "\b" with something like "\s" or " " or
".". Also, your last "\b" does not match between ")" and " ", because
both match "\W" and do not make a "word boundary".

I'd use a pattern like "\btodo\s+\(es\).*".

Kreiger



Attachment(s):
signature.asc
0

Hi Christoffer

Yep, I got the \b totally wrong...
Thanks very much for your help.

etienne

0

Please sign in to leave a comment.