From 17e27776ea152509e1095bbf80f5af65bc7a7997 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 4 May 2020 12:24:24 +0200 Subject: Add a -log-before & -log-after predicate With the file name heuristic for -before and -after in place, we might want a way for the user to disable it. For now, we simply do this by providing a new set of predicates without the filter. In the future, we might have a --disable-heuristics switch to disable the heuristics, in case we ever add more. --- src/fexpr/grammar.lalrpop | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fexpr') diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop index c0165ce..55bd669 100644 --- a/src/fexpr/grammar.lalrpop +++ b/src/fexpr/grammar.lalrpop @@ -50,6 +50,8 @@ LogPredicate: Box = { "-weekday" > => filters::log::weekday(<>), "-before" => filters::log::before(<>), "-after" => filters::log::after(<>), + "-log-before" => filters::log::log_before(<>), + "-log-after" => filters::log::log_after(<>), "-boss" > => filters::log::boss(<>), -- cgit v1.2.3