view runtime/syntax/dockerfile.vim @ 17373:c7763af24f8d v8.1.1685

patch 8.1.1685: missing file in distributed file list commit https://github.com/vim/vim/commit/a099da357248b48e0a78bc5675c5dd222b557bf1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 13 23:06:26 2019 +0200 patch 8.1.1685: missing file in distributed file list Problem: Missing file in distributed file list. Solution: Add profiling.pro
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Jul 2019 23:15:05 +0200
parents 9eaf8ef656e9
children f2c2f9126a82
line wrap: on
line source

" dockerfile.vim - Syntax highlighting for Dockerfiles
" Maintainer:   Honza Pokorny <https://honza.ca>
" Version:      0.6
" Last Change:  2016 Aug 9
" 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|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)\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