kenwheeler / task-list

Task list viewer based on TODO comments for Atom Editor
MIT License
9 stars 8 forks source link

The "TODO:" string is matched in non-comment contexts #10

Open rodw opened 9 years ago

rodw commented 9 years ago

Ideally the TODO matching would only operate in comment context. Currently it seems to match any occurrence of the search pattern--whether or not it is in a comment.

For example:

var map = {
  TODO: "not a comment",
  FIXME: "still not a comment"
};
var str = "TODO: in a string";