mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Docker-DCO-1.1-Signed-off-by: Asbjorn Enge <asbjorn@hanafjedle.net> (github: asbjornenge) Upstream-commit: cb47ddd968747091fd1b3d408dd36c4c2086e69f Component: engine
24 lines
619 B
VimL
24 lines
619 B
VimL
" dockerfile.vim - Syntax highlighting for Dockerfiles
|
|
" Maintainer: Honza Pokorny <http://honza.ca>
|
|
" Version: 0.5
|
|
|
|
|
|
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/
|
|
highlight link dockerfileKeyword Keyword
|
|
|
|
syntax region dockerfileString start=/\v"/ skip=/\v\\./ end=/\v"/
|
|
highlight link dockerfileString String
|
|
|
|
syntax match dockerfileComment "\v^\s*#.*$"
|
|
highlight link dockerfileComment Comment
|
|
|
|
set commentstring=#\ %s
|