Merge pull request #3866 from miloush/main

Include .xsd and .xslt as an XML extension
This commit is contained in:
Henning Dieterichs 2023-03-31 13:52:40 +02:00 committed by GitHub
commit 4244bc3a06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ registerLanguage({
id: 'xml', id: 'xml',
extensions: [ extensions: [
'.xml', '.xml',
'.xsd',
'.dtd', '.dtd',
'.ascx', '.ascx',
'.csproj', '.csproj',
@ -25,6 +26,7 @@ registerLanguage({
'.svg', '.svg',
'.svgz', '.svgz',
'.opf', '.opf',
'.xslt',
'.xsl' '.xsl'
], ],
firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)', firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',