| 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/abd39744c6f3ed854500e423f5fabf952165161f", |
| 8 |
"name": "docker", |
| 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 |
"begin": "\"", |
| 46 |
"beginCaptures": { |
| 47 |
"1": { |
| 48 |
"name": "punctuation.definition.string.begin.dockerfile" |
| 49 |
} |
| 50 |
}, |
| 51 |
"end": "\"", |
| 52 |
"endCaptures": { |
| 53 |
"1": { |
| 54 |
"name": "punctuation.definition.string.end.dockerfile" |
| 55 |
} |
| 56 |
}, |
| 57 |
"name": "string.quoted.double.dockerfile", |
| 58 |
"patterns": [ |
| 59 |
{ |
| 60 |
"match": "\\\\.", |
| 61 |
"name": "constant.character.escaped.dockerfile" |
| 62 |
} |
| 63 |
] |
| 64 |
}, |
| 65 |
{ |
| 66 |
"begin": "'", |
| 67 |
"beginCaptures": { |
| 68 |
"1": { |
| 69 |
"name": "punctuation.definition.string.begin.dockerfile" |
| 70 |
} |
| 71 |
}, |
| 72 |
"end": "'", |
| 73 |
"endCaptures": { |
| 74 |
"1": { |
| 75 |
"name": "punctuation.definition.string.end.dockerfile" |
| 76 |
} |
| 77 |
}, |
| 78 |
"name": "string.quoted.single.dockerfile", |
| 79 |
"patterns": [ |
| 80 |
{ |
| 81 |
"match": "\\\\.", |
| 82 |
"name": "constant.character.escaped.dockerfile" |
| 83 |
} |
| 84 |
] |
| 85 |
}, |
| 86 |
{ |
| 87 |
"captures": { |
| 88 |
"1": { |
| 89 |
"name": "punctuation.whitespace.comment.leading.dockerfile" |
| 90 |
}, |
| 91 |
"2": { |
| 92 |
"name": "comment.line.number-sign.dockerfile" |
| 93 |
}, |
| 94 |
"3": { |
| 95 |
"name": "punctuation.definition.comment.dockerfile" |
| 96 |
} |
| 97 |
}, |
| 98 |
"comment": "comment.line", |
| 99 |
"match": "^(\\s*)((#).*$\\n?)" |
| 100 |
} |
| 101 |
] |
| 102 |
} |
| 103 |
|