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/leaf.js | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 node_modules/highlight.js/lib/languages/leaf.js (limited to 'node_modules/highlight.js/lib/languages/leaf.js') diff --git a/node_modules/highlight.js/lib/languages/leaf.js b/node_modules/highlight.js/lib/languages/leaf.js new file mode 100644 index 000000000..2e51fcd1a --- /dev/null +++ b/node_modules/highlight.js/lib/languages/leaf.js @@ -0,0 +1,39 @@ +module.exports = function (hljs) { + return { + contains: [ + { + className: 'function', + begin: '#+' + '[A-Za-z_0-9]*' + '\\(', + end:' {', + returnBegin: true, + excludeEnd: true, + contains : [ + { + className: 'keyword', + begin: '#+' + }, + { + className: 'title', + begin: '[A-Za-z_][A-Za-z_0-9]*' + }, + { + className: 'params', + begin: '\\(', end: '\\)', + endsParent: true, + contains: [ + { + className: 'string', + begin: '"', + end: '"' + }, + { + className: 'variable', + begin: '[A-Za-z_][A-Za-z_0-9]*' + } + ] + } + ] + } + ] + }; +}; \ No newline at end of file -- cgit v1.2.3