diff --git a/contrib/Dockerfile.tmLanguage/Dockerfile.YAML-tmLanguage b/contrib/Dockerfile.tmLanguage/Dockerfile.YAML-tmLanguage new file mode 100644 index 0000000000..2323c40558 --- /dev/null +++ b/contrib/Dockerfile.tmLanguage/Dockerfile.YAML-tmLanguage @@ -0,0 +1,23 @@ +# [PackageDev] target_format: plist, ext: tmLanguage +--- +name: Dockerfile +scopeName: source.dockerfile +uuid: a39d8795-59d2-49af-aa00-fe74ee29576e + +patterns: +# Keywords +- name: keyword.control.dockerfile + match: ^\s*(FROM|MAINTAINER|RUN|CMD|EXPOSE|ENV|ADD)\s +- name: keyword.operator.dockerfile + match: ^\s*(ENTRYPOINT|VOLUME|USER|WORKDIR)\s +# String +- name: string.quoted.double.dockerfile + begin: "\"" + end: "\"" + patterns: + - name: constant.character.escaped.dockerfile + match: \\. +# Comment +- name: comment.block.dockerfile + match: ^\s*#.*$ +... \ No newline at end of file diff --git a/contrib/Dockerfile.tmLanguage/Dockerfile.tmLanguage b/contrib/Dockerfile.tmLanguage/Dockerfile.tmLanguage new file mode 100644 index 0000000000..ce5bb5e917 --- /dev/null +++ b/contrib/Dockerfile.tmLanguage/Dockerfile.tmLanguage @@ -0,0 +1,50 @@ + + + + + name + Dockerfile + patterns + + + match + ^\s*(FROM|MAINTAINER|RUN|CMD|EXPOSE|ENV|ADD)\s + name + keyword.control.dockerfile + + + match + ^\s*(ENTRYPOINT|VOLUME|USER|WORKDIR)\s + name + keyword.operator.dockerfile + + + begin + " + end + " + name + string.quoted.double.dockerfile + patterns + + + match + \\. + name + constant.character.escaped.dockerfile + + + + + match + ^\s*#.*$ + name + comment.block.dockerfile + + + scopeName + source.dockerfile + uuid + a39d8795-59d2-49af-aa00-fe74ee29576e + + diff --git a/contrib/Dockerfile.tmLanguage/MAINTAINERS b/contrib/Dockerfile.tmLanguage/MAINTAINERS new file mode 100644 index 0000000000..965743df64 --- /dev/null +++ b/contrib/Dockerfile.tmLanguage/MAINTAINERS @@ -0,0 +1 @@ +Asbjorn Enge (@asbjornenge) diff --git a/contrib/Dockerfile.tmLanguage/README.md b/contrib/Dockerfile.tmLanguage/README.md new file mode 100644 index 0000000000..157b5c9da0 --- /dev/null +++ b/contrib/Dockerfile.tmLanguage/README.md @@ -0,0 +1,9 @@ +# Dockerfile.tmLanguage + +Pretty basic Dockerfile.tmLanguage for Sublime Text syntax highlighting. + +PR's with syntax updates, suggestions etc. are all very much appreciated! + +I'll get to making this installable via Package Control soon! + +enjoy.