view runtime/syntax/dockerfile.vim @ 14403:e29cbac5e8f6 v8.1.0216

patch 8.1.0216: part of file not indented properly commit https://github.com/vim/vim/commit/8e85db0376604274bccf12bf5859d92b4192aca1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 27 23:16:51 2018 +0200 patch 8.1.0216: part of file not indented properly Problem: Part of file not indented properly. Solution: Adjust the indent. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 27 Jul 2018 23:30: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