mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
added clojure support
refs: https://github.com/Microsoft/monaco-editor/issues/828 https://github.com/theia-ide/theia/issues/1717
This commit is contained in:
parent
3dd38f1ca5
commit
b8cf0d688f
7 changed files with 395 additions and 113 deletions
18
src/clojure/clojure.contribution.ts
Normal file
18
src/clojure/clojure.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: 'clojure',
|
||||
extensions: ['.clj', '.clojure'],
|
||||
aliases: ['clojure', 'Clojure'],
|
||||
loader: () => _monaco.Promise.wrap(import('./clojure')),
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue