summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfs.c b/bfs.c
index c22d043..87e8350 100644
--- a/bfs.c
+++ b/bfs.c
@@ -467,6 +467,10 @@ static expression *parse_term(parser_state *state) {
break;
}
+ if (strcmp(arg, "-o") == 0 || strcmp(arg, "-or") == 0 || strcmp(arg, ",") == 0) {
+ break;
+ }
+
if (strcmp(arg, "-a") == 0 || strcmp(arg, "-and") == 0) {
++state->i;
}