Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ lexer shows function closing curly brackets in red #1986

Open
oliora opened this issue Aug 7, 2023 · 0 comments
Open

C++ lexer shows function closing curly brackets in red #1986

oliora opened this issue Aug 7, 2023 · 0 comments
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@oliora
Copy link

oliora commented Aug 7, 2023

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 oliora added the bugfix-request A request for a bugfix to be developed. label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

No branches or pull requests

1 participant