| 1 | module highlight |
| 2 | |
| 3 | fn init_cpp() Lang { |
| 4 | return Lang{ |
| 5 | name: 'C++' |
| 6 | lang_extensions: ['cpp', 'cc', 'hh', 'h'] |
| 7 | line_comments: '//' |
| 8 | mline_comments: ['/*', '*/'] |
| 9 | string_start: ['"', "'"] |
| 10 | color: '#f34b7d' |
| 11 | keywords: [ |
| 12 | 'int', |
| 13 | 'float', |
| 14 | 'while', |
| 15 | 'private', |
| 16 | 'char', |
| 17 | 'catch', |
| 18 | 'export', |
| 19 | 'virtual', |
| 20 | 'operator', |
| 21 | 'sizeof', |
| 22 | 'typedef', |
| 23 | 'const', |
| 24 | 'struct', |
| 25 | 'for', |
| 26 | 'static_cast', |
| 27 | 'dynamic_cast', |
| 28 | 'reinterpret_cast', |
| 29 | 'const_cast', |
| 30 | 'union', |
| 31 | 'namespace', |
| 32 | 'unsigned', |
| 33 | 'long', |
| 34 | 'volatile', |
| 35 | 'static', |
| 36 | 'protected', |
| 37 | 'bool', |
| 38 | 'template', |
| 39 | 'mutable', |
| 40 | 'if', |
| 41 | 'public', |
| 42 | 'friend', |
| 43 | 'do', |
| 44 | 'goto', |
| 45 | 'auto', |
| 46 | 'void', |
| 47 | 'enum', |
| 48 | 'else', |
| 49 | 'break', |
| 50 | 'extern', |
| 51 | 'using', |
| 52 | 'class', |
| 53 | 'asm', |
| 54 | 'case', |
| 55 | 'typeid', |
| 56 | 'short', |
| 57 | 'default', |
| 58 | 'double', |
| 59 | 'register', |
| 60 | 'explicit', |
| 61 | 'signed', |
| 62 | 'typename', |
| 63 | 'try', |
| 64 | 'this', |
| 65 | 'switch', |
| 66 | 'continue', |
| 67 | 'inline', |
| 68 | 'delete', |
| 69 | 'alignof', |
| 70 | 'constexpr', |
| 71 | 'decltype', |
| 72 | 'noexcept', |
| 73 | 'static_assert', |
| 74 | 'thread_local', |
| 75 | 'restrict', |
| 76 | '_Bool', |
| 77 | 'complex', |
| 78 | 'return', |
| 79 | 'throw', |
| 80 | 'new', |
| 81 | 'true', |
| 82 | 'false', |
| 83 | 'nullptr', |
| 84 | '#if', |
| 85 | '#else', |
| 86 | '#elif', |
| 87 | '#endif', |
| 88 | '#define', |
| 89 | '#undef', |
| 90 | '#warning', |
| 91 | '#error', |
| 92 | '#line', |
| 93 | '#pragma', |
| 94 | '#ifdef', |
| 95 | '#ifndef', |
| 96 | '#include', |
| 97 | '#endif', |
| 98 | ] |
| 99 | } |
| 100 | } |
| 101 |