Add .opf to xml file extensions

Add support for EPUB 3 .opf files as XML
This commit is contained in:
Alf Eaton 2019-07-18 23:27:59 +01:00 committed by GitHub
parent 7814d873bd
commit c002f7424f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ import { registerLanguage } from '../_.contribution';
registerLanguage({ registerLanguage({
id: 'xml', id: 'xml',
extensions: ['.xml', '.dtd', '.ascx', '.csproj', '.config', '.wxi', '.wxl', '.wxs', '.xaml', '.svg', '.svgz'], extensions: ['.xml', '.dtd', '.ascx', '.csproj', '.config', '.wxi', '.wxl', '.wxs', '.xaml', '.svg', '.svgz', '.opf'],
firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)', firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',
aliases: ['XML', 'xml'], aliases: ['XML', 'xml'],
mimetypes: ['text/xml', 'application/xml', 'application/xaml+xml', 'application/xml-dtd'], mimetypes: ['text/xml', 'application/xml', 'application/xaml+xml', 'application/xml-dtd'],