aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y9
1 files changed, 7 insertions, 2 deletions
diff --git a/awkgram.y b/awkgram.y
index ad6873bb..d06faf8d 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -1738,7 +1738,12 @@ non_post_simp_exp
}
}
| '(' exp r_paren
- { $$ = $2; }
+ {
+ if (do_pretty_print)
+ $$ = list_append($2, bcalloc(Op_parens, 1, sourceline));
+ else
+ $$ = $2;
+ }
| LEX_BUILTIN '(' opt_fcall_expression_list r_paren
{
$$ = snode($3, $1);
@@ -5909,7 +5914,7 @@ add_lint(INSTRUCTION *list, LINTTYPE linttype)
// closest to the opcode if that opcode doesn't have one
if (ip->source_line != 0)
line = ip->source_line;
- }
+ }
if (do_lint) { /* compile-time warning */
if (isnoeffect(ip->opcode)) {