From 569c17607297dbbd57462a9603861d9fe619fd2d Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 20 Apr 2020 13:47:00 +0200 Subject: Add -player as a shortcut to search player names --- src/fexpr/grammar.lalrpop | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop index cb16153..48349a1 100644 --- a/src/fexpr/grammar.lalrpop +++ b/src/fexpr/grammar.lalrpop @@ -53,6 +53,11 @@ LogPredicate: Box = { "-boss" > => filters::log::BossFilter::new(<>), + "-player" => filters::player::any( + filters::player::NameFilter::new(SearchField::Character, <>.clone()) + | filters::player::NameFilter::new(SearchField::Account, <>) + ), + "all" "(" "player" ":" ")" => filters::player::all(<>), "any" "(" "player" ":" ")" => filters::player::any(<>), "exists" "(" "player" ":" ")" => filters::player::any(<>), -- cgit v1.2.3