From 8ad63e2c0f8a70b861f2d72e082ebbb5595043f3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 31 Aug 2015 14:55:36 -0400 Subject: Fix -o/-or and comma operator. --- bfs.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3