unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15728: 24.3.50; cc-mode incorrectly parses particular macro
@ 2013-10-27  4:16 Dima Kogan
  2013-10-27 13:49 ` bug#15728: bug #15728: " Alan Mackenzie
  2013-10-27 21:51 ` Alan Mackenzie
  0 siblings, 2 replies; 4+ messages in thread
From: Dima Kogan @ 2013-10-27  4:16 UTC (permalink / raw)
  To: 15728

I have the following source file:

=========================================================================
int f(void)
{
#define A(b)								\
  int abc ## b;								\
    g()
}
=========================================================================

This indentation is what the latest emacs thinks is correct. Note that
the g() line is indented ahead of the 'int abc' line. This is wrong;
they should have the same indentation. Indeed this is what happens with
emacs23.

In the latest emacs the syntax parser thinks the g() line is
'statement-cont', instead of 'statement'; this is directly related to
the issue. Furthermore, the 'abc ## b' construct is what's confusing the
parser. Removing the '##' makes it parse correctly again.

I'm observing this issue with all emacs24 builds I've tried, with 'emacs
-Q'.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-27 21:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-27  4:16 bug#15728: 24.3.50; cc-mode incorrectly parses particular macro Dima Kogan
2013-10-27 13:49 ` bug#15728: bug #15728: " Alan Mackenzie
2013-10-27 18:45   ` Dima Kogan
2013-10-27 21:51 ` Alan Mackenzie

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).