[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] error: drop spurious semicolon
From: |
Ben Pfaff |
Subject: |
Re: [PATCH] error: drop spurious semicolon |
Date: |
Thu, 4 Sep 2014 08:11:59 -0700 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Sep 04, 2014 at 06:28:19AM -0600, Eric Blake wrote:
> Noticed this while writing a syntax check rule to look for bogus
> doubled semicolons. If there's interest, I could add this rule
> to maint.mk:
>
> # Except for shell files and for loops, double semicolon is probably a mistake
> sc_prohibit_double_semicolon:
> @prohibit=';;' \
> in_vc_files='\.[ch]$$' \
> exclude='for \(.*\)' \
> halt="Double semicolon detected" \
> $(_sc_search_regexp)
That looks useful to me.