From: Enrico Tassi Date: Tue, 28 Mar 2006 08:41:01 +0000 (+0000) Subject: deals with colors X-Git-Tag: 0.4.95@7852~1550 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=303202bdb889e90139d005ee7a0fd43c2081235f;p=helm.git deals with colors --- diff --git a/matita/scripts/functions.lua b/matita/scripts/functions.lua index a7c4d3669..d30988530 100755 --- a/matita/scripts/functions.lua +++ b/matita/scripts/functions.lua @@ -2,7 +2,7 @@ local tool_re = "^([%w%.]+)" local test_re = "([%w%./_]+)" -local rc_re = "([%a]+)" +local rc_re = string.char(27).."%[%d+;%d+m([%a]+)"..string.char(27).."%[0m" local time_re = "(%d+m%d+%.%d+s)" local mark_re = "(%d+)" local opt_re = "(gc%-%a+)$" @@ -42,7 +42,7 @@ for l in f:lines() do local x,_,tool,test,rc,real,user,_,mark,opt = string.find(l,re) if x == nil then - error("regex failed on " .. l) + error("regex failed on '"..l.."'") end -- check the result is valid