-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMocha.JSON-tmLanguage
More file actions
50 lines (50 loc) · 1.25 KB
/
Mocha.JSON-tmLanguage
File metadata and controls
50 lines (50 loc) · 1.25 KB
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
{ "name": "Mocha",
"scopeName": "source.nodejs_mocha",
"fileTypes": [".js"],
"patterns": [
{
"include": "source.js"
},
{
"name": "entity.section",
"begin": "(describe)\\(\"([^\"]+)\",\\s*function\\(\\)\\s*{",
"beginCaptures": {
"1": { "name": "storage.function" }
},
"patterns": [
{ "include": "$self" },
{
"name": "entity.section",
"begin": "(it)\\(\"([^\"]+)\",\\s*function\\((done)?\\)\\s*{",
"beginCaptures": {
"1": { "name": "support.function" },
"3": { "name": "keyword.control"}
},
"patterns": [
{ "include": "source.js" },
{
"name": "entity.tag",
"match": "(done)\\([^\\)]*\\)",
"captures": { "1": { "name": "keyword.control" } }
}
],
"end": "}\\);"
},
{
"name": "entity.tag",
"begin": "(beforeEach)\\(function\\((done)?\\)\\s*{",
"beginCaptures": {
"1": { "name": "support.function" },
"2": { "name": "keyword.control" }
},
"patterns": [
{ "include": "source.js" }
],
"end": "}\\);"
}
],
"end": "}\\);"
}
],
"uuid": "82997f2b-0c9a-45f8-b46e-b3f3ed147fe7"
}