kenwheeler / task-list

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

Support `TODO ....` and `TODO - ....` styles, in addition to `TODO: ....` #9

Open rodw opened 9 years ago

rodw commented 9 years ago

This patch modifies the TODO-matching (and FIXME-matching) regexp such that:

  1. Arbitrary horizontal whitespace, not just single space, is allowed before and after the colon
  2. The dash character (-) can be used as the TODO "delimiter", in addition to a colon, e.g., TODO - something to do
  3. Just whitespace can be used as the TODO delimiter, e.g. TODO something to do

In addition, a test case is added in order to:

  1. Test for the new functionality described above.
  2. Test the existing functionality a little more robustly.
andreipoe commented 9 years ago

This would be great to have