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

Function addKeywords

static/modes/cppp-mode.ts:47–53  ·  view source on GitHub ↗
(keywords: string[])

Source from the content-addressed store, hash-verified

45 }
46
47 function addKeywords(keywords: string[]) {
48 // (Ruben) Done one by one as if you just push them all, Monaco complains that they're not strings, but as
49 // far as I can tell, they indeed are all strings. This somehow fixes it. If you know how to fix it, plz go
50 for (let i = 0; i < keywords.length; ++i) {
51 cppp.keywords.push(keywords[i]);
52 }
53 }
54
55 // We remove everything that's not an identifier, underscore reserved name and not an official C++ keyword...
56 // Regarding #617, final is a identifier with special meaning, not a fully qualified keyword

Callers 1

definitionFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected