Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/docker/syntaxes/docker.tmLanguage.json
3314 views
1
{
2
"information_for_contributors": [
3
"This file has been converted from https://github.com/moby/moby/blob/master/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage",
4
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
"Once accepted there, we are happy to receive an update request."
6
],
7
"version": "https://github.com/moby/moby/commit/c2029cb2574647e4bc28ed58486b8e85883eedb9",
8
"name": "Dockerfile",
9
"scopeName": "source.dockerfile",
10
"patterns": [
11
{
12
"captures": {
13
"1": {
14
"name": "keyword.other.special-method.dockerfile"
15
},
16
"2": {
17
"name": "keyword.other.special-method.dockerfile"
18
}
19
},
20
"match": "^\\s*\\b(?i:(FROM))\\b.*?\\b(?i:(AS))\\b"
21
},
22
{
23
"captures": {
24
"1": {
25
"name": "keyword.control.dockerfile"
26
},
27
"2": {
28
"name": "keyword.other.special-method.dockerfile"
29
}
30
},
31
"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\s"
32
},
33
{
34
"captures": {
35
"1": {
36
"name": "keyword.operator.dockerfile"
37
},
38
"2": {
39
"name": "keyword.other.special-method.dockerfile"
40
}
41
},
42
"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(CMD|ENTRYPOINT))\\s"
43
},
44
{
45
"include": "#string-character-escape"
46
},
47
{
48
"begin": "\"",
49
"beginCaptures": {
50
"1": {
51
"name": "punctuation.definition.string.begin.dockerfile"
52
}
53
},
54
"end": "\"",
55
"endCaptures": {
56
"1": {
57
"name": "punctuation.definition.string.end.dockerfile"
58
}
59
},
60
"name": "string.quoted.double.dockerfile",
61
"patterns": [
62
{
63
"include": "#string-character-escape"
64
}
65
]
66
},
67
{
68
"begin": "'",
69
"beginCaptures": {
70
"1": {
71
"name": "punctuation.definition.string.begin.dockerfile"
72
}
73
},
74
"end": "'",
75
"endCaptures": {
76
"1": {
77
"name": "punctuation.definition.string.end.dockerfile"
78
}
79
},
80
"name": "string.quoted.single.dockerfile",
81
"patterns": [
82
{
83
"include": "#string-character-escape"
84
}
85
]
86
},
87
{
88
"captures": {
89
"1": {
90
"name": "punctuation.whitespace.comment.leading.dockerfile"
91
},
92
"2": {
93
"name": "comment.line.number-sign.dockerfile"
94
},
95
"3": {
96
"name": "punctuation.definition.comment.dockerfile"
97
}
98
},
99
"comment": "comment.line",
100
"match": "^(\\s*)((#).*$\\n?)"
101
}
102
],
103
"repository": {
104
"string-character-escape": {
105
"name": "constant.character.escaped.dockerfile",
106
"match": "\\\\."
107
}
108
}
109
}
110