clojure.contribution.ts 750 B

123456789101112131415161718
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. 'use strict';
  6. import { registerLanguage } from '../_.contribution';
  7. // Allow for running under nodejs/requirejs in tests
  8. const _monaco: typeof monaco =
  9. typeof monaco === 'undefined' ? (<any>self).monaco : monaco;
  10. registerLanguage({
  11. id: 'clojure',
  12. extensions: ['.clj', '.clojure'],
  13. aliases: ['clojure', 'Clojure'],
  14. loader: () => _monaco.Promise.wrap(import('./clojure')),
  15. });