-
Notifications
You must be signed in to change notification settings - Fork 2
/
blueprint.json
75 lines (75 loc) · 2.68 KB
/
blueprint.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
65
66
67
68
69
70
71
72
73
74
75
{
"name": "Apiary Blueprint",
"scopeName": "text.apib",
"fileTypes": ["apib"],
"patterns": [
{
"name": "keyword.host.apib",
"match": "^HOST:(.*)",
"captures": {
"1": { "name": "string.host.apib" }
}
},
{
"name": "meta.apiname.apib",
"match": "^--- (.+)---",
"captures": {
"1": { "name": "entity.name.module.apiname.apib" }
}
},
{
"begin": "^---",
"end": "^---",
"name": "comment.apidescription.apib"
},
{
"begin": "(?=^--)",
"end": "(?=^GET|^POST|^PUT|^DELETE|^OPTIONS|^PATCH|^PROPPATCH|^LOCK|^UNLOCK|^COPY|^MOVE|^MKCOL)",
"name": "meta.apidescription.apib",
"patterns": [
{
"name": "entity.name.class.section.apib",
"match": "^-- (.*)--"
},
{
"name": "comment.apidescription.apib",
"match": ".*"
}
]
},
{
"begin": "^(GET|POST|PUT|DELETE|OPTIONS|PATCH|PROPPATCH|LOCK|UNLOCK|COPY|MOVE|MKCOL)\\b(.*)",
"end": "(?=^GET|^POST|^PUT|^DELETE|^OPTIONS|^PATCH|^PROPPATCH|^LOCK|^UNLOCK|^COPY|^MOVE|^MKCOL|^--)",
"beginCaptures": {
"1": { "name": "keyword.resource.apib" },
"2": { "name": "string.resource.apib" }
},
"name": "meta.resourcedescription.apib",
"patterns": [
{
"begin": "(?<=^$^$)",
"end": "(?=^GET|^POST|^PUT|^DELETE|^OPTIONS|^PATCH|^PROPPATCH|^LOCK|^UNLOCK|^COPY|^MOVE|^MKCOL|^--)",
"name": "comment.resourcedescription.apib"
},
{
"name": "storage.inout.apib",
"match": "^[><](?:(?: (\\d+))|(?: ([a-zA-Z0-9\\-]+)(:)(.+)))?",
"captures": {
"1": { "name": "constant.numeric.integer.httpstatus.apib" },
"2": { "name": "variable.parameter.httpheader.name.apib" },
"3": { "name": "punctuation.separator.httpheader.apib" },
"4": { "name": "string.httpheader.value.apib" }
}
},
{
"name": "punctuation.responseseparator.apib",
"match": "\\+{5}"
},
{
"include": "source.json"
}
]
}
],
"uuid": "66b295dc-333a-11e2-9c92-1093e9011416"
}