We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Name of the lexer C++
Code sample
template<auto F = []{}> void func();
Demo: http://rouge.jneen.net/v3.29.0/cpp/dGVtcGxhdGU8YXV0byBGID0gW117fT4Kdm9pZCBmdW5jKCk7Cg
Additional context In general, I'd expect that any expression is valid in a template argument default.
The text was updated successfully, but these errors were encountered:
Actually seems like any braces in a template argument default is incorrectly highlighted as an error.
E.g. with a requires expression:
requires
template<auto F = requires { foo(); }> void func();
Demo: http://rouge.jneen.net/v3.29.0/cpp/dGVtcGxhdGU8YXV0byBGID0gcmVxdWlyZXMgeyBmb28oKTsgfT4Kdm9pZCBmdW5jKCk7Cg
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Name of the lexer
C++
Code sample
Demo: http://rouge.jneen.net/v3.29.0/cpp/dGVtcGxhdGU8YXV0byBGID0gW117fT4Kdm9pZCBmdW5jKCk7Cg
Additional context
In general, I'd expect that any expression is valid in a template argument default.
The text was updated successfully, but these errors were encountered: