aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-04-21 14:03:13 +0200
committerDaniel <kingdread@gmx.de>2020-04-21 14:03:13 +0200
commitd1f277892ec127b1fb83ad56de59b29c32695661 (patch)
tree4f0877422f67d24cc8daa6e48f385e97d569138a /src
parent185a5b2f802f9d05c3eb40f807c0488f168c6661 (diff)
downloadraidgrep-d1f277892ec127b1fb83ad56de59b29c32695661.tar.gz
raidgrep-d1f277892ec127b1fb83ad56de59b29c32695661.tar.bz2
raidgrep-d1f277892ec127b1fb83ad56de59b29c32695661.zip
add "or" and "and" to the list of tokens
Otherwise they'd get tokenized as word and we couldn't build conjunctions/disjunctions.
Diffstat (limited to 'src')
-rw-r--r--src/fexpr/grammar.lalrpop2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop
index 4e6ac89..f559ff1 100644
--- a/src/fexpr/grammar.lalrpop
+++ b/src/fexpr/grammar.lalrpop
@@ -153,6 +153,8 @@ Comma<T>: HashSet<T> = {
match {
"player" => "player",
"not" => "not",
+ "or" => "or",
+ "and" => "and",
"any" => "any",
"all" => "all",
"exists" => "exists",