mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
90 lines
1.9 KiB
JSON
90 lines
1.9 KiB
JSON
{
|
|
"fileTypes": [
|
|
"Dockerfile"
|
|
],
|
|
"name": "Dockerfile",
|
|
"patterns": [
|
|
{
|
|
"captures": {
|
|
"1": {
|
|
"name": "keyword.control.dockerfile"
|
|
},
|
|
"2": {
|
|
"name": "keyword.other.special-method.dockerfile"
|
|
}
|
|
},
|
|
"match": "^\\s*(?:(ONBUILD)\\s+)?(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)\\s"
|
|
},
|
|
{
|
|
"captures": {
|
|
"1": {
|
|
"name": "keyword.operator.dockerfile"
|
|
},
|
|
"2": {
|
|
"name": "keyword.other.special-method.dockerfile"
|
|
}
|
|
},
|
|
"match": "^\\s*(?:(ONBUILD)\\s+)?(CMD|ENTRYPOINT)\\s"
|
|
},
|
|
{
|
|
"begin": "\"",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "punctuation.definition.string.begin.dockerfile"
|
|
}
|
|
},
|
|
"end": "\"",
|
|
"endCaptures": {
|
|
"1": {
|
|
"name": "punctuation.definition.string.end.dockerfile"
|
|
}
|
|
},
|
|
"name": "string.quoted.double.dockerfile",
|
|
"patterns": [
|
|
{
|
|
"match": "\\\\.",
|
|
"name": "constant.character.escaped.dockerfile"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"begin": "'",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "punctuation.definition.string.begin.dockerfile"
|
|
}
|
|
},
|
|
"end": "'",
|
|
"endCaptures": {
|
|
"1": {
|
|
"name": "punctuation.definition.string.end.dockerfile"
|
|
}
|
|
},
|
|
"name": "string.quoted.single.dockerfile",
|
|
"patterns": [
|
|
{
|
|
"match": "\\\\.",
|
|
"name": "constant.character.escaped.dockerfile"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"captures": {
|
|
"1": {
|
|
"name": "punctuation.whitespace.comment.leading.dockerfile"
|
|
},
|
|
"2": {
|
|
"name": "comment.line.number-sign.dockerfile"
|
|
},
|
|
"3": {
|
|
"name": "punctuation.definition.comment.dockerfile"
|
|
}
|
|
},
|
|
"comment": "comment.line",
|
|
"match": "^(\\s*)((#).*$\\n?)"
|
|
}
|
|
],
|
|
"scopeName": "source.dockerfile",
|
|
"uuid": "a39d8795-59d2-49af-aa00-fe74ee29576e",
|
|
"version": "https://github.com/docker/docker/commit/4cb71f80823af345d063cf0ad657e73ce9caa75f"
|
|
} |