From 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2017 15:10:37 +0200 Subject: fix build issues and add typedoc --- node_modules/highlight.js/lib/languages/parser3.js | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 node_modules/highlight.js/lib/languages/parser3.js (limited to 'node_modules/highlight.js/lib/languages/parser3.js') diff --git a/node_modules/highlight.js/lib/languages/parser3.js b/node_modules/highlight.js/lib/languages/parser3.js new file mode 100644 index 000000000..24df5a9de --- /dev/null +++ b/node_modules/highlight.js/lib/languages/parser3.js @@ -0,0 +1,47 @@ +module.exports = function(hljs) { + var CURLY_SUBCOMMENT = hljs.COMMENT( + '{', + '}', + { + contains: ['self'] + } + ); + return { + subLanguage: 'xml', relevance: 0, + contains: [ + hljs.COMMENT('^#', '$'), + hljs.COMMENT( + '\\^rem{', + '}', + { + relevance: 10, + contains: [ + CURLY_SUBCOMMENT + ] + } + ), + { + className: 'meta', + begin: '^@(?:BASE|USE|CLASS|OPTIONS)$', + relevance: 10 + }, + { + className: 'title', + begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$' + }, + { + className: 'variable', + begin: '\\$\\{?[\\w\\-\\.\\:]+\\}?' + }, + { + className: 'keyword', + begin: '\\^[\\w\\-\\.\\:]+' + }, + { + className: 'number', + begin: '\\^#[0-9a-fA-F]+' + }, + hljs.C_NUMBER_MODE + ] + }; +}; \ No newline at end of file -- cgit v1.2.3