better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

Keyword highlights missing in template template parameter

Open HighCommander4 opened this issue 5 years ago • 0 comments

In the following code, the second template keyword on the indicated line is not highlighted:

template <template <typename T> class TT>   // <--
struct foo {};

If I give the template template parameter a default argument, the class keyword loses its highlighting too:

template <typename T>
struct vector {};

template <template <typename T> class TT = vector>  // <--
struct foo {};

Finally, if I omit the template parameter's own parameter T (which is valid), the typename keyword loses the highlighting too:

template <template <typename> class TT>  // <--
struct foo {};

HighCommander4 avatar Jul 27 '20 05:07 HighCommander4