dotcloud/docker

View on GitHub
contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage

Summary

Maintainability
Test Coverage
<?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">
<plist version="1.0">
<dict>
    <key>fileTypes</key>
    <array>
        <string>Dockerfile</string>
    </array>
    <key>name</key>
    <string>Dockerfile</string>
    <key>patterns</key>
    <array>
        <dict>
            <key>captures</key>
            <dict>
                <key>1</key>
                <dict>
                    <key>name</key>
                    <string>keyword.other.special-method.dockerfile</string>
                </dict>
                <key>2</key>
                <dict>
                    <key>name</key>
                    <string>keyword.other.special-method.dockerfile</string>
                </dict>
            </dict>
            <key>match</key>
            <string>^\s*\b(?i:(FROM))\b.*?\b(?i:(AS))\b</string>
        </dict>
        <dict>
            <key>captures</key>
            <dict>
                <key>1</key>
                <dict>
                    <key>name</key>
                    <string>keyword.control.dockerfile</string>
                </dict>
                <key>2</key>
                <dict>
                    <key>name</key>
                    <string>keyword.other.special-method.dockerfile</string>
                </dict>
            </dict>
            <key>match</key>
            <string>^\s*(?i:(ONBUILD)\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\s</string>
        </dict>
        <dict>
            <key>captures</key>
            <dict>
                <key>1</key>
                <dict>
                    <key>name</key>
                    <string>keyword.operator.dockerfile</string>
                </dict>
                <key>2</key>
                <dict>
                    <key>name</key>
                    <string>keyword.other.special-method.dockerfile</string>
                </dict>
            </dict>
            <key>match</key>
            <string>^\s*(?i:(ONBUILD)\s+)?(?i:(CMD|ENTRYPOINT))\s</string>
        </dict>
        <dict>
            <key>begin</key>
            <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>
            <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>
            <string>string.quoted.double.dockerfile</string>
            <key>patterns</key>
            <array>
                <dict>
                    <key>match</key>
                    <string>\\.</string>
                    <key>name</key>
                    <string>constant.character.escaped.dockerfile</string>
                </dict>
            </array>
        </dict>
        <dict>
            <key>begin</key>
            <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>
            <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>
            <string>string.quoted.single.dockerfile</string>
            <key>patterns</key>
            <array>
                <dict>
                    <key>match</key>
                    <string>\\.</string>
                    <key>name</key>
                    <string>constant.character.escaped.dockerfile</string>
                </dict>
            </array>
        </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>
            <string>^(\s*)((#).*$\n?)</string>
        </dict>
    </array>
    <key>scopeName</key>
    <string>source.dockerfile</string>
    <key>uuid</key>
    <string>a39d8795-59d2-49af-aa00-fe74ee29576e</string>
</dict>
</plist>