about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-12 21:22:09 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-12 21:22:09 +0100
commit589243c74c93bef948dfdd2dc3613041c58b6918 (patch)
tree98a1c974c467f12422cad5f02b3bb8e2eac8d84d /lr.c
parent6d84edf84c184db1ef01243320441f7111ffb548 (diff)
downloadlr-589243c74c93bef948dfdd2dc3613041c58b6918.tar.gz
lr-589243c74c93bef948dfdd2dc3613041c58b6918.tar.xz
lr-589243c74c93bef948dfdd2dc3613041c58b6918.zip
add action 'skip' which is always false
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lr.c b/lr.c
index 87aefb4..08d849f 100644
--- a/lr.c
+++ b/lr.c
@@ -417,6 +417,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("color")) {
 		struct expr *e = mkexpr(EXPR_COLOR);
 		int64_t n;