aboutsummaryrefslogtreecommitdiff
path: root/src/fexpr
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-17 20:32:21 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-17 20:32:21 +0100
commit5d18c3e79638573fb7ccf03349b7a5ca0c9d97f9 (patch)
treec64783cce6c32e169f5b2959549bb9c6cc66581f /src/fexpr
parent28d098e5ae326dd899b3a31ab05bfcd464a83554 (diff)
downloadraidgrep-5d18c3e79638573fb7ccf03349b7a5ca0c9d97f9.tar.gz
raidgrep-5d18c3e79638573fb7ccf03349b7a5ca0c9d97f9.tar.bz2
raidgrep-5d18c3e79638573fb7ccf03349b7a5ca0c9d97f9.zip
Add a game-mode filter
Diffstat (limited to 'src/fexpr')
-rw-r--r--src/fexpr/grammar.lalrpop7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop
index ce78396..580fa1b 100644
--- a/src/fexpr/grammar.lalrpop
+++ b/src/fexpr/grammar.lalrpop
@@ -9,7 +9,7 @@ use super::{
DurationProducer,
CountProducer,
};
-use evtclib::Encounter;
+use evtclib::{Encounter, GameMode};
use std::collections::HashSet;
use lalrpop_util::ParseError;
@@ -64,6 +64,11 @@ LogPredicate: Box<dyn filters::log::LogFilter> = {
"-boss" <Comma<Encounter>> => filters::log::encounter(<>),
"-cm" => filters::log::challenge_mote(),
+ "-raid" => filters::log::game_mode([GameMode::Raid].into()),
+ "-fractal" => filters::log::game_mode([GameMode::Fractal].into()),
+ "-strike" => filters::log::game_mode([GameMode::Strike].into()),
+ "-wvw" => filters::log::game_mode([GameMode::WvW].into()),
+
"-include" => filters::constant(true),
"-exclude" => filters::constant(false),