all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Welsh Duggan <mwd@md5i.com>
To: Arash <pbqbqp@gmail.com>
Cc: Alan Mackenzie <acm@muc.de>, 24246@debbugs.gnu.org
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	[thread overview]
Message-ID: <877fb76rnj.fsf@md5i.com> (raw)
In-Reply-To: <8660qzkvsa.fsf@gmail.com> (Arash's message of "Thu, 18 Aug 2016 00:33:33 +0430")

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)





  parent reply	other threads:[~2016-08-23 22:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-16 20:54 bug#24246: 25.0.95; (c++-mode) custom/extra types not getting highlighted (as a type) after a wrapper::type argument Arash
2016-08-17 12:29 ` Alan Mackenzie
2016-08-17 18:21 ` Alan Mackenzie
2016-08-17 20:03   ` Arash
2016-08-18  9:49     ` Alan Mackenzie
2016-08-23 22:34     ` Michael Welsh Duggan [this message]
2016-09-08 15:18   ` Arash

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877fb76rnj.fsf@md5i.com \
    --to=mwd@md5i.com \
    --cc=24246@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=pbqbqp@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.