summaryrefslogtreecommitdiffstats
path: root/bfs.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-08-31 14:58:32 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-08-31 14:58:32 -0400
commit727c6cb64b83e1b65c4ef5d099b848478078c01f (patch)
treea9d77e32dae660b8ac24fa2de61761f1223f448a /bfs.c
parent8ad63e2c0f8a70b861f2d72e082ebbb5595043f3 (diff)
downloadbfs-727c6cb64b83e1b65c4ef5d099b848478078c01f.tar.xz
Fix parsing around ")".
Diffstat (limited to 'bfs.c')
-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;
}