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

Function removeKeyword

static/modes/cppp-mode.ts:34–39  ·  view source on GitHub ↗
(keyword: string)

Source from the content-addressed store, hash-verified

32 const cppp = $.extend(true, {}, cpp.language); // deep copy
33
34 function removeKeyword(keyword: string) {
35 const index = cppp.keywords.indexOf(keyword);
36 if (index > -1) {
37 cppp.keywords.splice(index, 1);
38 }
39 }
40
41 function removeKeywords(keywords: string[]) {
42 for (let i = 0; i < keywords.length; ++i) {

Callers 1

removeKeywordsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected