module.exports = function(hljs) { var XML_IDENT_RE = '[A-Za-z0-9\\._:-]+'; var TAG_INTERNALS = { endsWithParent: true, relevance: 0, contains: [ { className: 'attribute', begin: XML_IDENT_RE, relevance: 0 }, { begin: '="', returnBegin: true, end: '"', contains: [{ className: 'value', begin: '"', endsWithParent: true }] }, { begin: '=\'', returnBegin: true, end: '\'', contains: [{ className: 'value', begin: '\'', endsWithParent: true }] }, { begin: '=', contains: [{ className: 'value', begin: '[^\\s/>]+' }] } ] }; return { case_insensitive: true, contains: [ { className: 'pi', begin: '<\\?', end: '\\?>', relevance: 10 }, { className: 'doctype', begin: '', relevance: 10, contains: [{begin: '\\[', end: '\\]'}] }, { className: 'comment', begin: '', relevance: 10 }, { className: 'cdata', begin: '<\\!\\[CDATA\\[', end: '\\]\\]>', relevance: 10 }, { className: 'tag', /* The lookahead pattern (?=...) ensures that 'begin' only matches '|$)', end: '>', keywords: {title: 'style'}, contains: [TAG_INTERNALS], starts: { end: '', returnEnd: true, subLanguage: 'css' } }, { className: 'tag', // See the comment in the