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

Function definition

static/modes/cppx-blue-mode.ts:31–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29import cppp from './cppp-mode.js';
30
31function definition(): monaco.languages.IMonarchLanguage {
32 const cppx_blue = $.extend(true, {}, cppp); // deep copy
33 cppx_blue.tokenPostfix = '.herb';
34
35 // add the 'type' keyword
36 cppx_blue.keywords.push('type');
37
38 // pick up 'identifier:' as a definition.
39 cppx_blue.tokenizer.root.unshift([/[a-zA-Z_]\w*\s*:/, 'identifier.definition']);
40
41 return cppx_blue;
42}
43
44monaco.languages.register({id: 'cppx-blue'});
45monaco.languages.setLanguageConfiguration('cppx-blue', cpp.conf);

Callers 1

cppx-blue-mode.tsFile · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected