| Index: lib/src/prism/tests/languages/cpp/keyword_feature.test
|
| diff --git a/lib/src/prism/tests/languages/cpp/keyword_feature.test b/lib/src/prism/tests/languages/cpp/keyword_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e3ca630a980f12042a8c922a4d8bc069d9a69b9f
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/cpp/keyword_feature.test
|
| @@ -0,0 +1,45 @@
|
| +alignas alignof asm auto bool
|
| +break case catch char char16_t char32_t
|
| +class;
|
| +compl const constexpr
|
| +const_cast continue decltype default
|
| +delete do double dynamic_cast
|
| +else enum explicit export extern
|
| +float for friend goto if
|
| +inline int long mutable namespace
|
| +new noexcept nullptr operator
|
| +private protected public register
|
| +reinterpret_cast return short
|
| +signed sizeof static static_assert
|
| +static_cast struct switch template
|
| +this thread_local throw try
|
| +typedef typeid typename union
|
| +unsigned using virtual void
|
| +volatile wchar_t while
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["keyword", "alignas"], ["keyword", "alignof"], ["keyword", "asm"], ["keyword", "auto"], ["keyword", "bool"],
|
| + ["keyword", "break"], ["keyword", "case"], ["keyword", "catch"], ["keyword", "char"], ["keyword", "char16_t"], ["keyword", "char32_t"],
|
| + ["keyword", "class"], ["punctuation", ";"],
|
| + ["keyword", "compl"], ["keyword", "const"], ["keyword", "constexpr"],
|
| + ["keyword", "const_cast"], ["keyword", "continue"], ["keyword", "decltype"], ["keyword", "default"],
|
| + ["keyword", "delete"], ["keyword", "do"], ["keyword", "double"], ["keyword", "dynamic_cast"],
|
| + ["keyword", "else"], ["keyword", "enum"], ["keyword", "explicit"], ["keyword", "export"], ["keyword", "extern"],
|
| + ["keyword", "float"], ["keyword", "for"], ["keyword", "friend"], ["keyword", "goto"], ["keyword", "if"],
|
| + ["keyword", "inline"], ["keyword", "int"], ["keyword", "long"], ["keyword", "mutable"], ["keyword", "namespace"],
|
| + ["keyword", "new"], ["keyword", "noexcept"], ["keyword", "nullptr"], ["keyword", "operator"],
|
| + ["keyword", "private"], ["keyword", "protected"], ["keyword", "public"], ["keyword", "register"],
|
| + ["keyword", "reinterpret_cast"], ["keyword", "return"], ["keyword", "short"],
|
| + ["keyword", "signed"], ["keyword", "sizeof"], ["keyword", "static"], ["keyword", "static_assert"],
|
| + ["keyword", "static_cast"], ["keyword", "struct"], ["keyword", "switch"], ["keyword", "template"],
|
| + ["keyword", "this"], ["keyword", "thread_local"], ["keyword", "throw"], ["keyword", "try"],
|
| + ["keyword", "typedef"], ["keyword", "typeid"], ["keyword", "typename"], ["keyword", "union"],
|
| + ["keyword", "unsigned"], ["keyword", "using"], ["keyword", "virtual"], ["keyword", "void"],
|
| + ["keyword", "volatile"], ["keyword", "wchar_t"], ["keyword", "while"]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for all keywords
|
|
|