From 24911dea0afe29ddad3e8e295eb552a179f67db7 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 15 Aug 2019 18:13:20 +0200 Subject: add * for waiting-for tasks --- notyet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'notyet') 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 -- cgit 1.4.1