From 647db3938d27d832d09f622b304c7bd23bc00d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Enge?= Date: Thu, 6 Feb 2014 20:38:20 +0100 Subject: [PATCH] Added suppport for the ONBUILD instruction Docker-DCO-1.1-Signed-off-by: Asbjorn Enge (github: asbjornenge) --- contrib/syntax/textmate/Dockerfile.tmLanguage | 34 +++++++++++++++---- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/contrib/syntax/textmate/Dockerfile.tmLanguage b/contrib/syntax/textmate/Dockerfile.tmLanguage index fa8f38992e..94aa8975ad 100644 --- a/contrib/syntax/textmate/Dockerfile.tmLanguage +++ b/contrib/syntax/textmate/Dockerfile.tmLanguage @@ -12,15 +12,37 @@ match - ^\s*(FROM|MAINTAINER|RUN|CMD|EXPOSE|ENV|ADD)\s - name - keyword.control.dockerfile + ^\s*(ONBUILD|)\s*(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|USER|WORKDIR)\s + captures + + 0 + + name + keyword.control.dockerfile + + 1 + + name + keyword.other.special-method.dockerfile + + match - ^\s*(ENTRYPOINT|VOLUME|USER|WORKDIR)\s - name - keyword.operator.dockerfile + ^\s*(ONBUILD|)\s*(CMD|ENTRYPOINT)\s + captures + + 0 + + name + keyword.operator.dockerfile + + 1 + + name + keyword.other.special-method.dockerfile + + begin