summaryrefslogtreecommitdiff
blob: 66dc4ceda80df459b1591ab917f0250736c67461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 6d7ab5f6486c6d30a685605aa5b0ecfda0434e86 Mon Sep 17 00:00:00 2001
From: Justin Lecher <jlec@gentoo.org>
Date: Tue, 27 Dec 2016 17:32:48 +0000
Subject: [PATCH] More advanced regex for configure colouring

Signed-off-by: Justin Lecher <jlec@gentoo.org>
---
 conf.configure | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/conf.configure b/conf.configure
index ac88ec7..e7b5d89 100644
--- a/conf.configure
+++ b/conf.configure
@@ -1,14 +1,27 @@
-regexp=^checking
+# cache functions
+regexp=\b(loading|updating|creating) cache\b
+colours=yellow bold
+.........
+# checking
+regexp=\bchecking\s*(for|if|whether|command|how|that)?(\s*to)?\b
 colours=bold blue
 .........
+# result is complex
 regexp=\.\.\. .*$
 colours=bold yellow
 .........
-regexp=\.\.\. yes$
+# check succeeded
+regexp=\.\.\.( \(cached\))? yes$
 colours=bold cyan
 .........
-regexp=\.\.\. no$
+# check did not succeed
+regexp=\.\.\.( \(cached\))? no$
 colours=bold red
 .........
-regexp=\.\.\.[ ]
+# ... should be normal
+regexp=\.\.\.
 colours=default
+.........
+# creating stuff
+regexp=\bcreating\b
+colours=green