Re:The Plain Text Project
by sverhagen on Monday December 02, 2019 @09:16PM
(#21689341)
This only works depending on how diligently you formatted those TODOs. Before you know it your regex explodes. I use IntelliJ as well, so I don't have to think about these problems.
[ Parent
| on HN ]
Re:The Plain Text Project
by microcolonel on Monday December 02, 2019 @09:41PM
(#21689445)
I mean, how often do you place the four characters "TODO" in your code when you don't mean to mark a TODO? The only common English word I know of that contains that substring is "mastodon", and it'd have to be all-caps.
Re:The Plain Text Project
by yakshaving_jgt on Tuesday December 03, 2019 @06:44AM
(#21691588)
You could also include word boundaries if you cared enough.
ag '\bTODO\b'