From 304e4a2ee75697a2f6dcd15cb301fe583200e69d Mon Sep 17 00:00:00 2001 From: RabsRincon Date: Thu, 8 Aug 2019 21:31:42 +0200 Subject: [PATCH] Add C++20 keywords --- static/modes/cppp-mode.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/modes/cppp-mode.js b/static/modes/cppp-mode.js index 84914887a..f88f31c30 100644 --- a/static/modes/cppp-mode.js +++ b/static/modes/cppp-mode.js @@ -58,8 +58,9 @@ function definition() { "generic", "in", "initonly", "interface", "interior_ptr", "internal", "literal", "partial", "pascal", "pin_ptr", "property", "ref", "restrict", "safe_cast", "sealed", "title_static", "where"]); - addKeywords(["alignas", "alignof", "and", "and_eq", "asm", "bitand", "bitor", "char16_t", "char32_t", "compl", - "not", "not_eq", "or", "or_eq", "xor", "xor_eq"]); + addKeywords(["alignas", "alignof", "and", "and_eq", "asm", "bitand", "bitor", "char8_t", "char16_t", + "char32_t", "compl", "concept", "consteval", "co_await", "co_return", "co_yield", "not", "not_eq", "or", + "or_eq", "requires", "xor", "xor_eq"]); // #880, patch annotations to handle [ [ something ] ] function patchAnnotation(root) {