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