mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
[docker] add update grammar script
This commit is contained in:
90
extensions/docker/syntaxes/docker.tmLanguage.json
Normal file
90
extensions/docker/syntaxes/docker.tmLanguage.json
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
Reference in New Issue
Block a user