diff --git a/gulpfile.js b/gulpfile.js index eb068c65..12d7511e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -81,7 +81,8 @@ gulp.task('release', ['clean-release','compile'], function() { bundleOne('src/mysql'), bundleOne('src/redshift'), bundleOne('src/pgsql'), - bundleOne('src/redis') + bundleOne('src/redis'), + bundleOne('src/csp') ) .pipe(uglify({ output: { diff --git a/src/csp.ts b/src/csp.ts new file mode 100644 index 00000000..5225bd89 --- /dev/null +++ b/src/csp.ts @@ -0,0 +1,61 @@ +/*--------------------------------------------------------------------------------------------- + * 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 IRichLanguageConfiguration = monaco.languages.LanguageConfiguration; +import ILanguage = monaco.languages.IMonarchLanguage; + +export const conf: IRichLanguageConfiguration = { + brackets: [], + autoClosingPairs: [], + surroundingPairs: [] +}; + +export const language = { + // Set defaultToken to invalid to see what you do not tokenize yet + // defaultToken: 'invalid', + keywords: [], + typeKeywords: [], + tokenPostfix: '.csp', + operators: [], + symbols: /[=>