Skip to content

Commit

Permalink
Added highlight for the COPY instruction
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Asbjorn Enge <[email protected]> (github: asbjornenge)
  • Loading branch information
asbjornenge committed Jun 12, 2014
1 parent c99ee55 commit cb47ddd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<array>
<dict>
<key>match</key>
<string>^\s*(ONBUILD\s+)?(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|USER|WORKDIR)\s</string>
<string>^\s*(ONBUILD\s+)?(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|USER|WORKDIR|COPY)\s</string>
<key>captures</key>
<dict>
<key>0</key>
Expand Down
2 changes: 1 addition & 1 deletion contrib/syntax/vim/syntax/dockerfile.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ 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)\s/
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"/
Expand Down

0 comments on commit cb47ddd

Please sign in to comment.