diff --git a/autotests/folding/highlight.cpp.fold b/autotests/folding/highlight.cpp.fold --- a/autotests/folding/highlight.cpp.fold +++ b/autotests/folding/highlight.cpp.fold @@ -428,6 +428,8 @@ // Attributes +int f(int i) [[expects: i > 0]] [[ensures audit x: x < 1]]; + [[noreturn]] void foo(); [[deprecated]] void foo(); [[deprecated("because")]] void foo(); diff --git a/autotests/html/highlight.cpp.html b/autotests/html/highlight.cpp.html --- a/autotests/html/highlight.cpp.html +++ b/autotests/html/highlight.cpp.html @@ -434,6 +434,8 @@ // Attributes +int f(int i) [[expects: i > 0]] [[ensures audit x: x < 1]]; + [[noreturn]] void foo(); [[deprecated]] void foo(); [[deprecated("because")]] void foo(); diff --git a/autotests/input/highlight.cpp b/autotests/input/highlight.cpp --- a/autotests/input/highlight.cpp +++ b/autotests/input/highlight.cpp @@ -428,6 +428,8 @@ // Attributes +int f(int i) [[expects: i > 0]] [[ensures audit x: x < 1]]; + [[noreturn]] void foo(); [[deprecated]] void foo(); [[deprecated("because")]] void foo(); diff --git a/autotests/reference/highlight.cpp.ref b/autotests/reference/highlight.cpp.ref --- a/autotests/reference/highlight.cpp.ref +++ b/autotests/reference/highlight.cpp.ref @@ -428,6 +428,8 @@
// Attributes

+int f(int i) [[expects: i > 0]] [[ensures audit x: x < 1]];
+
[[noreturn]] void foo();
[[deprecated]] void foo();
[[deprecated("because")]] void foo();
diff --git a/data/syntax/isocpp.xml b/data/syntax/isocpp.xml --- a/data/syntax/isocpp.xml +++ b/data/syntax/isocpp.xml @@ -22,7 +22,7 @@ + break case @@ -55,22 +56,21 @@ try while + alignof alignas asm auto class - concept - requires + consteval constexpr const_cast decltype delete dynamic_cast enum explicit - export false final friend @@ -110,20 +110,26 @@ or_eq xor xor_eq + + concept + requires - - - - - + + + import + module + export + + co_await + co_return + co_yield + + + + + assert + ensures + expects + + + + default + audit + axiom + using + bool char + char8_t char16_t char32_t double @@ -216,7 +236,7 @@ const extern mutable - register + register static thread_local volatile @@ -239,7 +259,10 @@ __func__ assert _Pragma + __has_include + + __has_cpp_attribute __VA_ARGS__ @@ -505,7 +528,9 @@ + + @@ -518,6 +543,11 @@ + + + + +