diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2015-08-31 14:55:36 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2015-08-31 14:55:36 -0400 |
commit | 8ad63e2c0f8a70b861f2d72e082ebbb5595043f3 (patch) | |
tree | 29a50f82037a06bc423062a0338fd34f062e0573 /bfs.c | |
parent | 41f3a74689361c90530de2b1ea802cbb4e8aff40 (diff) | |
download | bfs-8ad63e2c0f8a70b861f2d72e082ebbb5595043f3.tar.xz |
Fix -o/-or and comma operator.
Diffstat (limited to 'bfs.c')
-rw-r--r-- | bfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |