diff options
-rw-r--r-- | src/fexpr/grammar.lalrpop | 5 |
1 files changed, 5 insertions, 0 deletions
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<dyn filters::log::LogFilter> = { "-boss" <Comma<Boss>> => filters::log::BossFilter::new(<>), + "-player" <Regex> => filters::player::any( + filters::player::NameFilter::new(SearchField::Character, <>.clone()) + | filters::player::NameFilter::new(SearchField::Account, <>) + ), + "all" "(" "player" ":" <PlayerFilter> ")" => filters::player::all(<>), "any" "(" "player" ":" <PlayerFilter> ")" => filters::player::any(<>), "exists" "(" "player" ":" <PlayerFilter> ")" => filters::player::any(<>), |