mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Add Scheme language
This commit is contained in:
parent
781bcdd267
commit
817ca5bd99
6 changed files with 236 additions and 0 deletions
18
src/scheme/scheme.contribution.ts
Normal file
18
src/scheme/scheme.contribution.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import { registerLanguage } from '../_.contribution';
|
||||
|
||||
// Allow for running under nodejs/requirejs in tests
|
||||
const _monaco: typeof monaco =
|
||||
typeof monaco === 'undefined' ? (<any>self).monaco : monaco;
|
||||
|
||||
registerLanguage({
|
||||
id: 'scheme',
|
||||
extensions: ['.scm', '.ss', '.sch', '.rkt'],
|
||||
aliases: ['scheme', 'Scheme'],
|
||||
loader: () => _monaco.Promise.wrap(import('./scheme')),
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue