mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-21 19:06:18 +02:00
- add attribute ([[...]]) - add c++20 keywords - add hexadecimal floatting point - add digits separator - fix unamed class/union/struct/enum (fix #272) - fix function name detection
27 lines
292 B
Plaintext
27 lines
292 B
Plaintext
#include "a"
|
|
#include <b>
|
|
|
|
[[nodiscard]] void foo() noexcept;
|
|
void foo();
|
|
|
|
constexpr class {} a;
|
|
|
|
enum class E { A, B };
|
|
enum class [[nodiscard]] E { A, B };
|
|
|
|
enum class {
|
|
a, b,
|
|
c,
|
|
} e;
|
|
|
|
enum E { A, B };
|
|
|
|
class A {
|
|
void foo();
|
|
void bar();
|
|
};
|
|
|
|
int main() {
|
|
return 0 + 1'3 + 1.4;
|
|
}
|