xml.contribution.js 1.1 KB

12345678910111213141516
  1. define(["require", "exports", "../_.contribution"], function (require, exports, __contribution_1) {
  2. /*---------------------------------------------------------------------------------------------
  3. * Copyright (c) Microsoft Corporation. All rights reserved.
  4. * Licensed under the MIT License. See License.txt in the project root for license information.
  5. *--------------------------------------------------------------------------------------------*/
  6. 'use strict';
  7. Object.defineProperty(exports, "__esModule", { value: true });
  8. __contribution_1.registerLanguage({
  9. id: 'xml',
  10. extensions: ['.xml', '.dtd', '.ascx', '.csproj', '.config', '.wxi', '.wxl', '.wxs', '.xaml', '.svg', '.svgz', '.opf', '.xsl'],
  11. firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',
  12. aliases: ['XML', 'xml'],
  13. mimetypes: ['text/xml', 'application/xml', 'application/xaml+xml', 'application/xml-dtd'],
  14. loader: function () { return new Promise(function (resolve_1, reject_1) { require(['./xml'], resolve_1, reject_1); }); }
  15. });
  16. });