rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments

Home Page:https://rouge.jneen.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++ lexer shows function closing curly brackets in red

oliora opened this issue · comments

Name of the lexer
cpp

Code sample
A sample of the code that produces the bug.

template <std::size_t Alignment>
inline __attribute__((always_inline)) const char* alignedAfter(const char* ptr) noexcept {
    auto offset = reinterpret_cast<std::uintptr_t>(ptr) & (Alignment - 1);
    return offset ? (ptr + Alignment - offset) : ptr;
}

Additional context

Check the closing bracket in red. The CSS class of it is err.

image