aboutsummaryrefslogtreecommitdiff
path: root/src/fexpr
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-06-12 15:36:19 +0200
committerDaniel <kingdread@gmx.de>2020-06-12 15:36:19 +0200
commit6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee (patch)
tree40603b4cb7e845c771f5800af1e0c5c6092620de /src/fexpr
parent3d4ac61f9d8506ef82301772fe41c75d0f19e5a4 (diff)
downloadraidgrep-6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee.tar.gz
raidgrep-6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee.tar.bz2
raidgrep-6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee.zip
add a count(player) to count all players
Diffstat (limited to 'src/fexpr')
-rw-r--r--src/fexpr/grammar.lalrpop1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop
index 9eef21a..700481c 100644
--- a/src/fexpr/grammar.lalrpop
+++ b/src/fexpr/grammar.lalrpop
@@ -220,6 +220,7 @@ DurationProducer: Box<dyn DurationProducer> = {
CountProducer: Box<dyn CountProducer> = {
<integer> => filters::values::constant(<>.parse().unwrap()),
"count" "(" "player" ":" <PlayerFilter> ")" => filters::values::player_count(<>),
+ "count" "(" "player" ")" => filters::values::player_count(filters::constant(true)),
}
match {