summaryrefslogtreecommitdiff
path: root/scripts/find-blanks.awk
blob: 1d00609f833081d20bb8d05f747221d2a0664038 (plain)
1
2
3
4
5
6
BEGIN		{ last_char = "x"; }
/^$/		{ if (last_char == "{") print(FILENAME, FNR); last_char = " "; next; }
/^\s*{$/	{ last_char = "{"; next; }
/ {$/		{ last_char = "{"; next; }
/^\s*}$/	{ if (last_char == " ") print(FILENAME, FNR); last_char = "}"; next; }
		{ last_char = "x"; }