mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Add Tcl support
This commit is contained in:
parent
8f7537dee5
commit
9d51b7ced9
6 changed files with 281 additions and 4 deletions
16
src/tcl/tcl.contribution.ts
Normal file
16
src/tcl/tcl.contribution.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* 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';
|
||||
|
||||
const _monaco: typeof monaco = (typeof monaco === 'undefined' ? (<any>self).monaco : monaco);
|
||||
|
||||
registerLanguage({
|
||||
id: 'tcl',
|
||||
extensions: ['.tcl'],
|
||||
aliases: ['tcl', 'Tcl', 'tcltk', 'TclTk', 'tcl/tk', 'Tcl/Tk'],
|
||||
loader: () => _monaco.Promise.wrap(import('./tcl'))
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue