MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / addKeywords

Function addKeywords

static/modes/cppcircle-mode.ts:36–42  ·  view source on GitHub ↗
(keywords: string[])

Source from the content-addressed store, hash-verified

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',

Callers 1

definitionFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected