[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24246: 25.0.95; (c++-mode) custom/extra types not getting highlighte
From: |
Michael Welsh Duggan |
Subject: |
bug#24246: 25.0.95; (c++-mode) custom/extra types not getting highlighted (as a type) after a wrapper::type argument. |
Date: |
Tue, 23 Aug 2016 18:34:40 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Arash <pbqbqp@gmail.com> writes:
> Thanks, fontification for function decs/defs got fixed but the problem
> still exists in e.g. init step of a for loop...
>
> for (wrapper::type a = 0, int32 b = 0; ; ) {
> ...
> }
I don't believe that is legal C++. The for-init-statement must be a
single statement. Since "wrapper::type a = 0, int32 b = 0;" is not a
legal statement, it is not a legal for-init-statement.
The following, however, is legal:
for (struct{wrapper::type a; int32 b;} var = {0, 0}; ; ) {
}
--
Michael Welsh Duggan
(md5i@md5i.com)