Add Scheme language

This commit is contained in:
masad-frost 2018-05-21 23:03:09 -07:00
parent 781bcdd267
commit 817ca5bd99
6 changed files with 236 additions and 0 deletions

View 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')),
});