GNU bug report logs - #20208
25.0.50; c-mode: incorrect fontification of simple enums (again)

Previous Next

Packages: emacs, cc-mode;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Thu, 26 Mar 2015 20:07:02 UTC

Severity: normal

Found in version 25.0.50

Fixed in version 25.1

Done: Alex <agrambot <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dima Kogan <dima <at> secretsauce.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; c-mode: incorrect fontification of simple enums (again)
Date: Thu, 26 Mar 2015 13:07:20 -0700
[Message part 1 (text/plain, inline)]
Hi. This is very similar to bug 19669. I'm running emacs from revision
6e1fac9, which has the fix to bug 19969: revision d69e9f1c.

I'm opening a file tst.hh (attached). Then "emacs -Q -nw tst.hh". Then
any interactive command (M-x, for instance). The result has
fontification issues, as shown by the attached image.


[tst.hh (text/x-c++hdr, inline)]
enum class error_t
{
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -1,
	xxxxxxxxxxxxxxxxxxxxxxxxx							  = -3,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx		  = -4,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -5,
	xxxxxxxxxxxxxxxxxxxxxxxxx							  = -9,
	xxxxxxxxxxxxxxxxxxxxxxxxxx							  = -10,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -11,
	xxxxxxxxxxxxxxxxxxxxxxx								  = -14,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -15,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -16,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = -18,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -19,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -20,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -21,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -22,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -25,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -27,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -31,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -32,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -33,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -36,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -48,
};
[enum_fontification_issue.png (image/png, attachment)]

This bug report was last modified 8 years and 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.