about summary refs log tree commit diff
path: root/mpick.c
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2019-01-28 10:58:27 +0100
committerLeah Neukirchen <chneukirchen@gmail.com>2020-05-15 18:41:13 +0200
commit3968f2ef03290de2bd77ba5f63470fc1e0d133e1 (patch)
tree794beccd29c720b5a6558ea86b783f71cb0d2328 /mpick.c
parent401aa88752bc0d02d27bc4b17a612c2e3a4df3f5 (diff)
downloadmblaze-3968f2ef03290de2bd77ba5f63470fc1e0d133e1.tar.gz
mblaze-3968f2ef03290de2bd77ba5f63470fc1e0d133e1.tar.xz
mblaze-3968f2ef03290de2bd77ba5f63470fc1e0d133e1.zip
mpick: add skip expression
Diffstat (limited to 'mpick.c')
-rw-r--r--mpick.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpick.c b/mpick.c
index 0427519..c4a4207 100644
--- a/mpick.c
+++ b/mpick.c
@@ -274,6 +274,11 @@ parse_inner()
 	} else if (token("print")) {
 		struct expr *e = mkexpr(EXPR_PRINT);
 		return e;
+	} else if (token("skip")) {
+		struct expr *e = mkexpr(EXPR_PRINT);
+		struct expr *not = mkexpr(EXPR_NOT);
+		not->a.expr = e;
+		return not;
 	} else if (token("!")) {
 		struct expr *e = parse_cmp();
 		struct expr *not = mkexpr(EXPR_NOT);