about summary refs log tree commit diff
path: root/notyet
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-08-15 18:13:20 +0200
committerLeah Neukirchen <leah@vuxu.org>2019-08-15 18:13:20 +0200
commit24911dea0afe29ddad3e8e295eb552a179f67db7 (patch)
tree6dbe17eb9460aa88da1aff492bd9509c186a83cb /notyet
parentef64daa1b99d55688aa0f61f204fe54df3c3b48a (diff)
downloadnotyet-24911dea0afe29ddad3e8e295eb552a179f67db7.tar.gz
notyet-24911dea0afe29ddad3e8e295eb552a179f67db7.tar.xz
notyet-24911dea0afe29ddad3e8e295eb552a179f67db7.zip
add * for waiting-for tasks
Diffstat (limited to 'notyet')
-rwxr-xr-xnotyet6
1 files changed, 3 insertions, 3 deletions
diff --git a/notyet b/notyet
index 76d345f..5b8b894 100755
--- a/notyet
+++ b/notyet
@@ -82,7 +82,7 @@ class Entry < Struct.new(:depth, :state, :desc, :file, :line, :children)
   end
 
   def force(state)
-    self.state = state  unless "xX?".index(self.state)
+    self.state = state  unless "xX?*".index(self.state)
     children.each { |c| c.force(state) }
   end
 
@@ -139,7 +139,7 @@ def parse(io, filename=nil)
       fname, lineno = filename, io.lineno
     end
 
-    if line =~ /\A(?:\s*(?:#|\/\/)\s)?(\s*)([-xX?])\s+(.*)/
+    if line =~ /\A(?:\s*(?:#|\/\/)\s)?(\s*)([-xX?*])\s+(.*)/
       i, state, desc = $1.size, $2, $3
       while i <= todos.last.depth
         todos.pop
@@ -235,7 +235,7 @@ t.stat
 t.filter(ARGV)
 
 if count_only
-  puts "#{t.count("xX")}/#{t.count("-xX")}"
+  puts "#{t.count("xX")}/#{t.count("-xX*")}"
   exit
 end