view runtime/syntax/dockerfile.vim @ 15882:8fb7dd311ca7 v8.1.0947

patch 8.1.0947: using MSWIN before it is defined commit https://github.com/vim/vim/commit/7dca2ebbcf508ef2533f1b9f998f7e63c9bbd598 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 18 20:42:50 2019 +0100 patch 8.1.0947: using MSWIN before it is defined Problem: Using MSWIN before it is defined. (Cesar Romani) Solution: Move the block that uses MSWIN to below including vim.h. (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Feb 2019 20:45:06 +0100
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