()
| 31 | // circle is c++ with a few extra '@'-prefixed keywords. |
| 32 | |
| 33 | function definition(): monaco.languages.IMonarchLanguage { |
| 34 | const cppcircle = $.extend(true, {}, cppp); // deep copy |
| 35 | |
| 36 | function addKeywords(keywords: string[]) { |
| 37 | // (Ruben) Done one by one as if you just push them all, Monaco complains that they're not strings, but as |
| 38 | // far as I can tell, they indeed are all strings. This somehow fixes it. If you know how to fix it, plz go |
| 39 | for (let i = 0; i < keywords.length; ++i) { |
| 40 | cppcircle.keywords.push(keywords[i]); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | addKeywords([ |
| 45 | '@array', |
| 46 | '@attribute', |
| 47 | '@base_count', |
| 48 | '@base_offset', |
| 49 | '@base_offsets', |
| 50 | '@base_type', |
| 51 | '@base_type_string', |
| 52 | '@base_type_strings', |
| 53 | '@base_types', |
| 54 | '@base_value', |
| 55 | '@base_values', |
| 56 | '@codegen', |
| 57 | '@data', |
| 58 | '@decl_string', |
| 59 | '@dynamic_type', |
| 60 | '@embed', |
| 61 | '@emit', |
| 62 | '@enum_attribute', |
| 63 | '@enum_attributes', |
| 64 | '@enum_count', |
| 65 | '@enum_decl_string', |
| 66 | '@enum_decl_strings', |
| 67 | '@enum_has_attribute', |
| 68 | '@enum_name', |
| 69 | '@enum_names', |
| 70 | '@enum_type', |
| 71 | '@enum_type_string', |
| 72 | '@enum_type_strings', |
| 73 | '@enum_types', |
| 74 | '@enum_value', |
| 75 | '@enum_values', |
| 76 | '@expand_params', |
| 77 | '@expression', |
| 78 | '@files', |
| 79 | '@func_decl', |
| 80 | '@has_attribute', |
| 81 | '@include', |
| 82 | '@is_class_template', |
| 83 | '@macro', |
| 84 | '@match', |
| 85 | '@mauto', |
| 86 | '@member', |
| 87 | '@member_count', |
| 88 | '@member_decl_string', |
| 89 | '@member_decl_strings', |
| 90 | '@member_default', |
no test coverage detected