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

core_patterns not updated correctly by patterns in prefs #28

Open spovich opened 12 years ago

spovich commented 12 years ago

I want to match FIXME and TODO without the trailing colon. I added the following to my prefs (I removed ':+' from the regex):

"todo": { "patterns": { "TODO": "TODO[\s]?(?P.)$", "FIXME": "FIX ?ME[\s]?(?P\S.)$" } }

However, it still only matches 'FIXME:', not 'FIXME'. If I make the same change in todo.py in the core_patterns variable, then it works. Something is borked in line 74 where patterns is merged into core_patterns, but I'm not a python guy. If a pattern is declared in user prefs, it should overwrite the core pattern.

Thanks! John