-
Notifications
You must be signed in to change notification settings - Fork 3
/
gherkin.grammar.json
64 lines (64 loc) · 1.58 KB
/
gherkin.grammar.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"scopeName": "gherkin.grammar",
"reference": "https://macromates.com/manual/en/language_grammars",
"patterns": [
{
"match": "^\\s*#.*",
"name": "comment.line"
},
{
"match": "^\\s*(\"\"\").*(\"\"\")",
"name": "comment.line"
},
{
"begin": "^\\s*(\"\"\")",
"end": "^\\s*(\"\"\")",
"name": "comment.line"
},
{
"match": "^\\s*(@.*)",
"captures": {
"1": {
"name": "keyword.control"
}
}
},
{
"match": "^\\s*(Feature|Background|Rule|Scenario|Scenario Outline|Scenario Template):(.*)",
"captures": {
"1": {
"name": "markup.bold"
},
"2": {
"name": "string"
}
}
},
{
"match": "^\\s*(Given|When|Then|And|But)(?:\\:)?(.*)",
"captures": {
"1": {
"name": "keyword"
},
"2": {
"name": "variable"
}
}
},
{
"match": "^\\s*(Examples?):(.*)",
"captures": {
"1": {
"name": "support.type"
},
"2": {
"name": "constant.numeric"
}
}
},
{
"match": "\\|",
"name": "support.type"
}
]
}