]> luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/gherkin.js
Initial commit.
[flow-web.git] / static / highlight / languages / gherkin.js
1 /*! `gherkin` grammar compiled for Highlight.js 11.11.1 */
2 (function(){
3 var hljsGrammar = (function () {
4 'use strict';
5
6 /*
7 Language: Gherkin
8 Author: Sam Pikesley (@pikesley) <sam.pikesley@theodi.org>
9 Description: Gherkin is the format for cucumber specifications. It is a domain specific language which helps you to describe business behavior without the need to go into detail of implementation.
10 Website: https://cucumber.io/docs/gherkin/
11 */
12
13 function gherkin(hljs) {
14 return {
15 name: 'Gherkin',
16 aliases: [ 'feature' ],
17 keywords: 'Feature Background Ability Business\ Need Scenario Scenarios Scenario\ Outline Scenario\ Template Examples Given And Then But When',
18 contains: [
19 {
20 className: 'symbol',
21 begin: '\\*',
22 relevance: 0
23 },
24 {
25 className: 'meta',
26 begin: '@[^@\\s]+'
27 },
28 {
29 begin: '\\|',
30 end: '\\|\\w*$',
31 contains: [
32 {
33 className: 'string',
34 begin: '[^|]+'
35 }
36 ]
37 },
38 {
39 className: 'variable',
40 begin: '<',
41 end: '>'
42 },
43 hljs.HASH_COMMENT_MODE,
44 {
45 className: 'string',
46 begin: '"""',
47 end: '"""'
48 },
49 hljs.QUOTE_STRING_MODE
50 ]
51 };
52 }
53
54 return gherkin;
55
56 })();
57
58 hljs.registerLanguage('gherkin', hljsGrammar);
59 })();