(Note: This was originally submitted to the cpp-tools repo as microsoft/vscode-cpptools#11100)
Consider the following snippet:
template <int n>
struct S{
int foo() requires(n == 2)
{
return 2;
}
int foo() requires(n < 2)
{
return 2;
}
private:
int b;
};
The syntax highlighting is completely broken after the second requires clause:

Expected behavior:
The syntax highlighting should continue to work as normal, as it does if you replace the < with >:

Version: 1.79.2
Commit: 695af09
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51
Embedder: vscode.dev
(Note: This was originally submitted to the cpp-tools repo as microsoft/vscode-cpptools#11100)
Consider the following snippet:
The syntax highlighting is completely broken after the second
requiresclause:Expected behavior:

The syntax highlighting should continue to work as normal, as it does if you replace the
<with>:Version: 1.79.2
Commit: 695af09
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51
Embedder: vscode.dev