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

Function configuration

static/modes/d-mode.ts:303–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301}
302
303function configuration(): monaco.languages.LanguageConfiguration {
304 return {
305 comments: {
306 lineComment: '//',
307 blockComment: ['/*', '*/'],
308 },
309
310 brackets: [
311 ['{', '}'],
312 ['[', ']'],
313 ['(', ')'],
314 ],
315
316 autoClosingPairs: [
317 {open: '{', close: '}'},
318 {open: '[', close: ']'},
319 {open: '(', close: ')'},
320 {open: '`', close: '`', notIn: ['string']},
321 {open: '"', close: '"', notIn: ['string']},
322 {open: "'", close: "'", notIn: ['string', 'comment']},
323 ],
324
325 surroundingPairs: [
326 {open: '{', close: '}'},
327 {open: '[', close: ']'},
328 {open: '(', close: ')'},
329 {open: '`', close: '`'},
330 {open: '"', close: '"'},
331 {open: "'", close: "'"},
332 ],
333 };
334}
335
336monaco.languages.register({id: 'd'});
337monaco.languages.setMonarchTokensProvider('d', definition());

Callers 1

d-mode.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected