[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7918: [PATCH] cc-mode: only the first clause of a for-loop should be
From: |
Daniel Colascione |
Subject: |
bug#7918: [PATCH] cc-mode: only the first clause of a for-loop should be checked for declarations |
Date: |
Thu, 25 Feb 2016 22:31:51 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
On 02/25/2016 10:18 PM, Lars Ingebrigtsen wrote:
> + ;; After a ";" in a for-block. A declaration can never
> + ;; begin after a `;' if the most enclosing paren is a
> + ;; `('.-declarators' handles the rest.
Hrm. That's not true in general. Consider Java's try-with-resources
construct:
try (Foo foo = new Foo(); Bar bar = new Bar()) { ... }
signature.asc
Description: OpenPGP digital signature