From 40b1ea413b644d4758a9e01e4166d96691be686e Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 20 Apr 2001 07:41:23 +0000 Subject: Fix damage I did in rev 1.4 that broke formatting this example: void foo(struct bar *bar) { return 0; } --- usr.bin/indent/lexi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin/indent') diff --git a/usr.bin/indent/lexi.c b/usr.bin/indent/lexi.c index 5970451..7c3892c 100644 --- a/usr.bin/indent/lexi.c +++ b/usr.bin/indent/lexi.c @@ -261,6 +261,8 @@ lexi() return (casestmt); case 3: /* a "struct" */ + if (ps.p_l_follow) + break; /* inside parens: cast */ /* * Next time around, we may want to know that we have had a * 'struct' -- cgit v1.1