1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Various cleanups added to asbjornenge/Docker.tmbundle (by the TM maintainer) and support for the LABEL instruction

Docker-DCO-1.1-Signed-off-by: Asbjorn Enge <asbjorn@hanafjedle.net> (github: asbjornenge)
This commit is contained in:
Asbjørn Enge 2015-06-15 00:04:05 +02:00
parent ac8cbf4952
commit dfec4a48c7

View file

@ -1,54 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>name</key>
<string>Dockerfile</string>
<key>fileTypes</key> <key>fileTypes</key>
<array> <array>
<string>Dockerfile</string> <string>Dockerfile</string>
</array> </array>
<key>name</key>
<string>Dockerfile</string>
<key>patterns</key> <key>patterns</key>
<array> <array>
<dict> <dict>
<key>match</key>
<string>^\s*(ONBUILD\s+)?(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|USER|LABEL|WORKDIR|COPY)\s</string>
<key>captures</key> <key>captures</key>
<dict> <dict>
<key>0</key> <key>1</key>
<dict> <dict>
<key>name</key> <key>name</key>
<string>keyword.control.dockerfile</string> <string>keyword.control.dockerfile</string>
</dict> </dict>
<key>1</key> <key>2</key>
<dict> <dict>
<key>name</key> <key>name</key>
<string>keyword.other.special-method.dockerfile</string> <string>keyword.other.special-method.dockerfile</string>
</dict> </dict>
</dict> </dict>
<key>match</key>
<string>^\s*(?:(ONBUILD)\s+)?(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|USER|WORKDIR|COPY|LABEL)\s</string>
</dict> </dict>
<dict> <dict>
<key>match</key>
<string>^\s*(ONBUILD\s+)?(CMD|ENTRYPOINT)\s</string>
<key>captures</key> <key>captures</key>
<dict> <dict>
<key>0</key> <key>1</key>
<dict> <dict>
<key>name</key> <key>name</key>
<string>keyword.operator.dockerfile</string> <string>keyword.operator.dockerfile</string>
</dict> </dict>
<key>1</key> <key>2</key>
<dict> <dict>
<key>name</key> <key>name</key>
<string>keyword.other.special-method.dockerfile</string> <string>keyword.other.special-method.dockerfile</string>
</dict> </dict>
</dict> </dict>
<key>match</key>
<string>^\s*(?:(ONBUILD)\s+)?(CMD|ENTRYPOINT)\s</string>
</dict> </dict>
<dict> <dict>
<key>begin</key> <key>begin</key>
<string>"</string> <string>"</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.dockerfile</string>
</dict>
</dict>
<key>end</key> <key>end</key>
<string>"</string> <string>"</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.dockerfile</string>
</dict>
</dict>
<key>name</key> <key>name</key>
<string>string.quoted.double.dockerfile</string> <string>string.quoted.double.dockerfile</string>
<key>patterns</key> <key>patterns</key>
@ -64,8 +80,24 @@
<dict> <dict>
<key>begin</key> <key>begin</key>
<string>'</string> <string>'</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.dockerfile</string>
</dict>
</dict>
<key>end</key> <key>end</key>
<string>'</string> <string>'</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.dockerfile</string>
</dict>
</dict>
<key>name</key> <key>name</key>
<string>string.quoted.single.dockerfile</string> <string>string.quoted.single.dockerfile</string>
<key>patterns</key> <key>patterns</key>
@ -79,10 +111,28 @@
</array> </array>
</dict> </dict>
<dict> <dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.comment.leading.dockerfile</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>comment.line.number-sign.dockerfile</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.dockerfile</string>
</dict>
</dict>
<key>comment</key>
<string>comment.line</string>
<key>match</key> <key>match</key>
<string>^\s*#.*$</string> <string>^(\s*)((#).*$\n?)</string>
<key>name</key>
<string>comment.block.dockerfile</string>
</dict> </dict>
</array> </array>
<key>scopeName</key> <key>scopeName</key>