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/gherkin.js | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 node_modules/highlight.js/lib/languages/gherkin.js (limited to 'node_modules/highlight.js/lib/languages/gherkin.js') diff --git a/node_modules/highlight.js/lib/languages/gherkin.js b/node_modules/highlight.js/lib/languages/gherkin.js new file mode 100644 index 000000000..30af97f1b --- /dev/null +++ b/node_modules/highlight.js/lib/languages/gherkin.js @@ -0,0 +1,36 @@ +module.exports = function (hljs) { + return { + aliases: ['feature'], + keywords: 'Feature Background Ability Business\ Need Scenario Scenarios Scenario\ Outline Scenario\ Template Examples Given And Then But When', + contains: [ + { + className: 'symbol', + begin: '\\*', + relevance: 0 + }, + { + className: 'meta', + begin: '@[^@\\s]+' + }, + { + begin: '\\|', end: '\\|\\w*$', + contains: [ + { + className: 'string', + begin: '[^|]+' + } + ] + }, + { + className: 'variable', + begin: '<', end: '>' + }, + hljs.HASH_COMMENT_MODE, + { + className: 'string', + begin: '"""', end: '"""' + }, + hljs.QUOTE_STRING_MODE + ] + }; +}; \ No newline at end of file -- cgit v1.2.3