From 85a51396657945613141abb8a521e118db15afe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Enge?= Date: Fri, 13 Sep 2013 13:02:44 +0200 Subject: [PATCH] Added Dockerfile.tmLanguage to contrib --- .../Dockerfile.YAML-tmLanguage | 23 +++++++++ .../Dockerfile.tmLanguage | 50 +++++++++++++++++++ contrib/Dockerfile.tmLanguage/MAINTAINERS | 1 + contrib/Dockerfile.tmLanguage/README.md | 9 ++++ 4 files changed, 83 insertions(+) create mode 100644 contrib/Dockerfile.tmLanguage/Dockerfile.YAML-tmLanguage create mode 100644 contrib/Dockerfile.tmLanguage/Dockerfile.tmLanguage create mode 100644 contrib/Dockerfile.tmLanguage/MAINTAINERS create mode 100644 contrib/Dockerfile.tmLanguage/README.md 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.