|
39 | 39 | 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' + |
40 | 40 | 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' + |
41 | 41 | 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' + |
42 | | - 'char char16_t char32_t bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' + |
| 42 | + 'char char8_t char16_t char32_t bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' + |
43 | 43 | 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' + |
44 | 44 | 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' + |
45 | 45 | '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' + |
|
49 | 49 | 'va_list wchar_t wctrans_t wctype_t wint_t signed'; |
50 | 50 |
|
51 | 51 | var keywords = 'alignas alignof auto break case catch class const constexpr decltype __finally __exception __try ' + |
52 | | - 'const_cast continue private public protected __declspec ' + |
| 52 | + 'const_cast consteval concept continue private public protected __declspec ' + |
53 | 53 | 'default delete deprecated dllexport dllimport do dynamic_cast ' + |
54 | | - 'else enum explicit extern if for friend goto inline ' + |
| 54 | + 'else enum explicit extern if for friend final goto inline ' + |
55 | 55 | 'mutable naked namespace new noinline noreturn nothrow noexcept nullptr ' + |
56 | | - 'ref register reinterpret_cast return selectany ' + |
| 56 | + 'override ref register reinterpret_cast requires return selectany ' + |
57 | 57 | 'sizeof static static_cast static_assert struct switch template this ' + |
58 | 58 | 'thread thread_local throw true false try typedef typeid typename union ' + |
59 | | - 'using uuid virtual void volatile whcar_t while'; |
| 59 | + 'using uuid virtual void volatile whcar_t while xor xor_eq '; |
60 | 60 |
|
61 | 61 | var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' + |
62 | 62 | 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' + |
|
78 | 78 | this.regexList = [ |
79 | 79 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments |
80 | 80 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments |
| 81 | + { regex: /(R|L|U|u|u8)?"([^\\"\n]|\\.)*"/g, css: 'string' }, // special character |
| 82 | + { regex: /(R|L|U|u|u8)?'([^\\'\n]|\\.)*'/g, css: 'string' }, // special string |
81 | 83 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings |
82 | 84 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings |
83 | 85 | { regex: /^ *#.*/gm, css: 'preprocessor' }, |
|
0 commit comments