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

Function configuration

static/modes/cppx-gold-mode.ts:274–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272}
273
274function configuration(): monaco.languages.LanguageConfiguration {
275 return {
276 comments: {
277 lineComment: '#',
278 blockComment: ['<#', '#>'],
279 },
280
281 brackets: [
282 ['{', '}'],
283 ['[', ']'],
284 ['(', ')'],
285 ],
286
287 autoClosingPairs: [
288 {open: '[', close: ']'},
289 {open: '{', close: '}'},
290 {open: '(', close: ')'},
291 {open: "'", close: "'", notIn: ['string', 'comment']},
292 {open: '"', close: '"', notIn: ['string']},
293 ],
294
295 surroundingPairs: [
296 {open: '{', close: '}'},
297 {open: '[', close: ']'},
298 {open: '(', close: ')'},
299 {open: '"', close: '"'},
300 {open: "'", close: "'"},
301 ],
302 };
303}
304
305monaco.languages.register({id: 'cppx-gold'});
306monaco.languages.setMonarchTokensProvider('cppx-gold', definition());

Callers 1

cppx-gold-mode.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected