aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 74a8103..08de424 100644
--- a/parse.c
+++ b/parse.c
@@ -1260,7 +1260,7 @@ static enum kind which_kind(struct token *token, struct token **p,
}
if (token_type(next) != TOKEN_SPECIAL)
- return dont_nest ? Bad_Nested : Bad_Func;
+ return !dont_nest ? Bad_Nested : Bad_Func;
if (next->special == ')') {
/* don't complain about those */