C++11's decltype wrongly highlighted

Create issue
Issue #1200 new
Former user created an issue

Please see http://pygments.org/demo/3560316/ Shorter version here:

constexpr decltype(1) x = 1;

void f() noexcept
    constexpr decltype(1) x = 1;

Please note that both decltypes are highlighted differently.

Comments (2)

  1. Anteru
    • changed milestone to 2.5
    • changed version to 2.4.2

    Looks like the first decltype is treated as a function, and from then on everything goes downhill.

  2. Log in to comment