From e634f2394085d5dc7e716553b330acb8694bf6d3 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 6 Feb 2014 11:12:57 -0700 Subject: [PATCH] Add "ONBUILD" highlighting to our vim syntax file Docker-DCO-1.1-Signed-off-by: Andrew Page (github: tianon) --- contrib/syntax/vim/syntax/dockerfile.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/syntax/vim/syntax/dockerfile.vim b/contrib/syntax/vim/syntax/dockerfile.vim index fb5cab23cb..ec79ae7476 100644 --- a/contrib/syntax/vim/syntax/dockerfile.vim +++ b/contrib/syntax/vim/syntax/dockerfile.vim @@ -11,8 +11,7 @@ let b:current_syntax = "dockerfile" syntax case ignore -syntax match dockerfileKeyword /\v^\s*(FROM|MAINTAINER|RUN|CMD|EXPOSE|ENV|ADD)\s/ -syntax match dockerfileKeyword /\v^\s*(ENTRYPOINT|VOLUME|USER|WORKDIR)\s/ +syntax match dockerfileKeyword /\v^\s*(ONBUILD\s+)?(ADD|CMD|ENTRYPOINT|ENV|EXPOSE|FROM|MAINTAINER|RUN|USER|VOLUME|WORKDIR)\s/ highlight link dockerfileKeyword Keyword syntax region dockerfileString start=/\v"/ skip=/\v\\./ end=/\v"/