views:

312

answers:

1

I am using the standard (shipped) Emacs C++ mode but I have a slight itch that I am looking to get scratched. How would I go about properly highlighting the types inside of a sizeof and the casts in C++?

For example:

  1. A Cast

    Type * pointer = reinterpret_cast <Type *> (original);

  2. Sizeof

    std::cout << sizeof (Type) << "\n";

+1  A: 
Florian Jenn