summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-08-31 14:55:36 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-08-31 14:55:36 -0400
commit8ad63e2c0f8a70b861f2d72e082ebbb5595043f3 (patch)
tree29a50f82037a06bc423062a0338fd34f062e0573
parent41f3a74689361c90530de2b1ea802cbb4e8aff40 (diff)
downloadbfs-8ad63e2c0f8a70b861f2d72e082ebbb5595043f3.tar.xz
Fix -o/-or and comma operator.
-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;
}