Hi Alan, try this:
emacs -Q foo.cpp
And enter the text:
template <typename T>
class array
{
array(pointer& data, size_type& size)
At this point, the final line is not fontified in any way. Maybe there's
nothing we can do about that?
Anyway, now add a final ";" after the ")". The line is fontified correctly.
Great!
Now I change my mind and decide to implement the ctor instead. So I delete
the ";" and replace it with " {" RET.
The fontification of the parameters is removed (though the fontification of
"array" remains). Surely that is unnecessary?
Note that if I now do M-x font-lock-mode RET twice to turn it off and back
on, the parameters are fontified correctly.
So, I guess c++-mode can do it right, it's just that something is preventing
it when the ";" is deleted.
Simon.
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. Misys Banking Systems is a trading name of Misys International Banking Systems Limited which is registered in England and Wales under company registration number 00971479 and with its registered office address at Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP. THIS E-MAIL DOES NOT CONSTITUTE THE COMMENCEMENT OF LEGAL RELATIONS BETWEEN YOU AND MISYS INTERNATIONAL BANKING SYSTEMS LIMITED. 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.
|