bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[22.2]: Font-lock fooled by unknown ptr types in for/if scope


From: Marshall, Simon
Subject: [22.2]: Font-lock fooled by unknown ptr types in for/if scope
Date: Fri, 18 Apr 2008 17:50:08 +0100

This is true of Emacs 22.1 and 22.2 + some patches for other bugs sent to me by Alan.

Put in foo.cpp:

{
  for (int i = 0; i < 10; i++);
  if (bool b = f());
  for (Int i = 0; i < 10; i++);
  if (Bool b = f());
  for (int *i = 0; i < 10; i++);
  if (bool *b = f());
  for (const int *i = 0; i < 10; i++);
  if (const bool *b = f());
  if (bool *const b = f());
  if (const bool *const b = f());
  for (Int *i = 0; i < 10; i++); // Int and i not fontified
  if (Bool *b = f());            // Bool and b not fontified
  for (const Int *i = 0; i < 10; i++);
  if (const Bool *b = f());
  if (Bool *const b = f());     // Bool and b not fontified
  if (const Bool *const b = f());
}

Not sure if I should bother reporting this to Emacs' list - sorry if I shouldn't.  Simon.



"Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP. For a list of Misys group operating companies please go to http://www.misys.com/html/about_us/group_operating_companies/. This email and any attachments have been scanned for known viruses using multiple scanners.
 
We believe that this email and any attachments are virus free, however the recipient must take full responsibility for virus checking. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. 

   


reply via email to

[Prev in Thread] Current Thread [Next in Thread]