xml.contribution.js 931 B

123456789101112131415161718192021222324252627
  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. import { registerLanguage } from '../_.contribution.js';
  6. registerLanguage({
  7. id: 'xml',
  8. extensions: [
  9. '.xml',
  10. '.dtd',
  11. '.ascx',
  12. '.csproj',
  13. '.config',
  14. '.wxi',
  15. '.wxl',
  16. '.wxs',
  17. '.xaml',
  18. '.svg',
  19. '.svgz',
  20. '.opf',
  21. '.xsl'
  22. ],
  23. firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',
  24. aliases: ['XML', 'xml'],
  25. mimetypes: ['text/xml', 'application/xml', 'application/xaml+xml', 'application/xml-dtd'],
  26. loader: function () { return import('./xml.js'); }
  27. });