robcowie / SublimeTODO

**[DEPRECATED]** - See https://github.com/jonathandelgado/SublimeTodoReview - Extract TODO-type comments from open files and project folders
295 stars 54 forks source link

No results given with default regex pattern #76

Closed thiagodebastos closed 9 years ago

thiagodebastos commented 9 years ago

I'm very new with regex and I cannot understand why the default regex pattern isn't working here. Am I making a simple error? I've spent quite some time firguring this out but am really pressed with work at the moment. If this is not a bug, I will go ahead and seek an answer in StackExchange or something. Thanks!

Version: 3071 Dev Console: no errors


My code:

// TODO block header
.hero
    //- TODO fix work assets path
    img
    img.protein(src="/assets/portfolio-assets/examplesite/img/image.png", alt="Product Image")
.header
    h1.project-name
    h3.sub-heading
        // @TODO (5) [convert to mixin]
        include /_includes/portfolio/meta
//- TODO block overview
.overview
    h2.section-header Summary.
    .section-content
        .summary
            p

        .snl-logo
            //- TODO import portfolio assets

None of these are being found. I tried playing around on regex101.com but just can't seem to get it. I will have to take the time to learn this when I can, hopefully you guys have a quick fix :)

GhostLyrics commented 9 years ago

I think it should be

TODO:

With a colon.

thiagodebastos commented 9 years ago

... And this is why I should ask first. Thank you so much, just saved me a headache, it's awalys the simplest answer!