diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-08-29 15:12:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-08-29 15:12:19 +0200 |
commit | 34401cca5ae3dce543154c967d727b13254e15b5 (patch) | |
tree | 39859b7fbbc7872417e227f523179aec1e5c476f /runtime/syntax/dockerfile.vim | |
parent | 773b158de8f813b0683fc56e37639937e5c9c1ee (diff) | |
download | vim-git-34401cca5ae3dce543154c967d727b13254e15b5.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/syntax/dockerfile.vim')
-rw-r--r-- | runtime/syntax/dockerfile.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/runtime/syntax/dockerfile.vim b/runtime/syntax/dockerfile.vim new file mode 100644 index 000000000..d1693cba4 --- /dev/null +++ b/runtime/syntax/dockerfile.vim @@ -0,0 +1,24 @@ +" dockerfile.vim - Syntax highlighting for Dockerfiles +" Maintainer: Honza Pokorny <http://honza.ca> +" Version: 0.5 +" Last Change: 2014 Aug 29 +" License: BSD + + +if exists("b:current_syntax") + finish +endif + +let b:current_syntax = "dockerfile" + +syntax case ignore + +syntax match dockerfileKeyword /\v^\s*(ONBUILD\s+)?(ADD|CMD|ENTRYPOINT|ENV|EXPOSE|FROM|MAINTAINER|RUN|USER|VOLUME|WORKDIR|COPY)\s/ + +syntax region dockerfileString start=/\v"/ skip=/\v\\./ end=/\v"/ + +syntax match dockerfileComment "\v^\s*#.*$" + +hi def link dockerfileString String +hi def link dockerfileKeyword Keyword +hi def link dockerfileComment Comment |