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