Sublime Forum

C++20 concepts highlighting

#1

Does Sublime Text 4 have support for highlighting C++20 code? I tried this small example and the highlighting breaks at struct b:

#include <type_traits>
#include <concepts>

struct a { int foo() { return 0; } };

template <typename T>
concept has_foo = requires(T) { { T{}.foo() } -> std::same_as<int>; };

template <typename T> requires has_foo<T>
struct b {};

int main() {
	b<a> bb;
	return 0;
}
0 Likes

#2

No. https://github.com/sublimehq/Packages/issues/2481

0 Likes