rouge icon indicating copy to clipboard operation
rouge copied to clipboard

C++ lexer shows function closing curly brackets in red

Open oliora opened this issue 2 years ago • 0 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

oliora avatar Aug 07 '23 20:08 oliora