aboutsummaryrefslogtreecommitdiff
path: root/node_modules/highlight.js/lib/languages/gherkin.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/highlight.js/lib/languages/gherkin.js')
-rw-r--r--node_modules/highlight.js/lib/languages/gherkin.js36
1 files changed, 36 insertions, 0 deletions
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