Alexandru Dima 4 роки тому
батько
коміт
51f6b59cc3
3 змінених файлів з 4 додано та 10 видалено
  1. 0 1
      src/ecl/ecl.contribution.ts
  2. 1 3
      src/ecl/ecl.test.ts
  3. 3 6
      src/ecl/ecl.ts

+ 0 - 1
src/ecl/ecl.contribution.ts

@@ -2,7 +2,6 @@
  *  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';
 

+ 1 - 3
src/ecl/ecl.test.ts

@@ -3,8 +3,6 @@
  *  Licensed under the MIT License. See License.txt in the project root for license information.
  *--------------------------------------------------------------------------------------------*/
 
-'use strict';
-
 import { testTokenization } from '../test/testRunner';
 
-testTokenization('csp', []);
+testTokenization('ecl', []);

+ 3 - 6
src/ecl/ecl.ts

@@ -3,12 +3,9 @@
  *  Licensed under the MIT License. See License.txt in the project root for license information.
  *--------------------------------------------------------------------------------------------*/
 
-'use strict';
+import type { languages } from '../fillers/monaco-editor-core';
 
-import IRichLanguageConfiguration = monaco.languages.LanguageConfiguration;
-import ILanguage = monaco.languages.IMonarchLanguage;
-
-export const conf: IRichLanguageConfiguration = {
+export const conf: languages.LanguageConfiguration = {
 	comments: {
 		lineComment: '//',
 		blockComment: ['/*', '*/']
@@ -35,7 +32,7 @@ export const conf: IRichLanguageConfiguration = {
 	]
 };
 
-export const language = <ILanguage>{
+export const language = <languages.IMonarchLanguage>{
 	defaultToken: '',
 	tokenPostfix: '.ecl',
 	ignoreCase: true,