mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #13935 from asbjornenge/tm_syntax_updates
TM syntax updates
This commit is contained in:
commit
748814a97a
2 changed files with 68 additions and 17 deletions
|
@ -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>
|
||||||
|
|
|
@ -6,11 +6,12 @@ Dockerfile syntax highlighting for TextMate and Sublime Text.
|
||||||
|
|
||||||
### Sublime Text
|
### Sublime Text
|
||||||
|
|
||||||
Available for Sublime Text under [Package Control](https://sublime.wbond.net/packages/Dockerfile%20Syntax%20Highlighting).
|
Available for Sublime Text under [package control](https://sublime.wbond.net/packages/Dockerfile%20Syntax%20Highlighting).
|
||||||
Search for *Dockerfile Syntax Highlighting*
|
Search for *Dockerfile Syntax Highlighting*
|
||||||
|
|
||||||
### TextMate 2
|
### TextMate 2
|
||||||
|
|
||||||
Copy the directory `Docker.tmbundle` (shown as a Package in OS X) to `~/Library/Application Support/TextMate/Managed/Bundles`
|
You can install this bundle in TextMate by opening the preferences and going to the bundles tab. After installation it will be automatically updated for you.
|
||||||
|
|
||||||
|
enjoy.
|
||||||
|
|
||||||
Enjoy.
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue