X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a4c22fa4bf5103f330ed5b8cbc4fb0859ea02c0b..d54387b4bca8c2c2b764c0c247f284ecce984be8:/src/lex.c diff --git a/src/lex.c b/src/lex.c index 4f1ddbfe..f18933e8 100644 --- a/src/lex.c +++ b/src/lex.c @@ -662,8 +662,8 @@ parse_percent_token (void) if (strcmp (token_buffer + 1, tx->name) == 0) break; - if (arg && !tx->retval == tok_stropt) - fatal (_("`%s' supports no argument: %s"), token_buffer, quotearg (arg)); + if (arg && tx->retval != tok_stropt) + fatal (_("`%s' supports no argument: %s"), token_buffer, quote (arg)); switch (tx->retval) {