better-cpp-syntax
better-cpp-syntax copied to clipboard
Variable template incorrectly recognized as comparison operator
Checklist
- [x] This problem exists even with the setting
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
#include <iostream>
template <bool T>
constexpr bool var_template = T;
template <bool T>
struct obj_template {
static constexpr bool value = T;
};
int main() {
std::cout << var_template<true> << obj_template<true>::value;
}
It looks like:
with the One Monokai theme
It should look like:
The < and > tokens next to var_template in var_template<true> should get the punctuation.section.angle-brackets.begin.template.call.cpp and punctuation.section.angle-brackets.end.template.call.cpp scopes respectively.
They don't.