Skip to content

Commit

Permalink
Update C++ syntax highlighting keyword list. (#2166)
Browse files Browse the repository at this point in the history
- Keywords are from https://en.cppreference.com/w/cpp/keyword
- Remove some duplicate keywords from the list.
  • Loading branch information
tjmprm77 committed Jan 4, 2024
1 parent a2d8430 commit cb59a94
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions Externals/crystaledit/editlib/parsers/cplusplus.cpp
Expand Up @@ -71,21 +71,34 @@ static const tchar_t * s_apszCppKeywordList[] =
_T ("_syscall"),
_T ("alignas"),
_T ("alignof"),
_T ("and"),
_T ("and_eq"),
_T ("asm"),
_T ("auto"),
_T ("bitand"),
_T ("bitor"),
_T ("bool"),
_T ("break"),
_T ("case"),
_T ("catch"),
_T ("char"),
_T ("char16_t"),
_T ("char32_t"),
_T ("char"),
_T ("char8_t"),
_T ("class"),
_T ("co_await"),
_T ("co_return"),
_T ("co_yield"),
_T ("compl"),
_T ("concept"),
_T ("const"),
_T ("const_cast"),
_T ("consteval"),
_T ("constexpr"),
_T ("constinit"),
_T ("continue"),
_T ("decltype"),
_T ("cset"),
_T ("decltype"),
_T ("default"),
_T ("delete"),
_T ("depend"),
Expand All @@ -97,33 +110,43 @@ static const tchar_t * s_apszCppKeywordList[] =
_T ("else"),
_T ("enum"),
_T ("explicit"),
_T ("export"),
_T ("extern"),
_T ("false"),
_T ("final"),
_T ("float"),
_T ("for"),
_T ("friend"),
_T ("goto"),
_T ("if"),
_T ("import"),
_T ("indexdef"),
_T ("inline"),
_T ("int"),
_T ("interface"),
_T ("long"),
_T ("main"),
_T ("module"),
_T ("mutable"),
_T ("naked"),
_T ("namespace"),
_T ("new"),
_T ("noexcept"),
_T ("not"),
_T ("not_eq"),
_T ("nullptr"),
_T ("ondemand"),
_T ("operator"),
_T ("or"),
_T ("or_eq"),
_T ("override"),
_T ("persistent"),
_T ("private"),
_T ("protected"),
_T ("public"),
_T ("register"),
_T ("reinterpret_cast"),
_T ("requires"),
_T ("return"),
_T ("short"),
_T ("signed"),
Expand All @@ -139,7 +162,6 @@ static const tchar_t * s_apszCppKeywordList[] =
_T ("thread_local"),
_T ("throw"),
_T ("transient"),
_T ("transient"),
_T ("true"),
_T ("try"),
_T ("typedef"),
Expand All @@ -153,9 +175,12 @@ static const tchar_t * s_apszCppKeywordList[] =
_T ("virtual"),
_T ("void"),
_T ("volatile"),
_T ("wchar_t"),
_T ("while"),
_T ("wmain"),
_T ("xalloc"),
_T ("xor"),
_T ("xor_eq"),
};

static const tchar_t * s_apszUser1KeywordList[] =
Expand All @@ -180,21 +205,17 @@ static const tchar_t * s_apszUser1KeywordList[] =
_T ("LPBYTE"),
_T ("LPCSTR"),
_T ("LPCTSTR"),
_T ("LPCTSTR"),
_T ("LPCWSTR"),
_T ("LPDWORD"),
_T ("LPINT"),
_T ("LPLONG"),
_T ("LPRECT"),
_T ("LPSTR"),
_T ("LPTSTR"),
_T ("LPTSTR"),
_T ("LPVOID"),
_T ("LPVOID"),
_T ("LPWORD"),
_T ("LPWSTR"),
_T ("LRESULT"),
_T ("LRESULT"),
_T ("PBOOL"),
_T ("PBYTE"),
_T ("PDWORD"),
Expand Down

0 comments on commit cb59a94

Please sign in to comment.