The new canonical place for the vim syntax file is in the upstream vim
tree. All improvements and patches should be submitted there.
https://github.com/vim/vim/blob/master/runtime/syntax/dockerfile.vim
Signed-off-by: Honza Pokorny <me@honza.ca>
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,22 +0,0 @@ |
| 1 |
-Copyright (c) 2013 Honza Pokorny |
|
| 2 |
-All rights reserved. |
|
| 3 |
- |
|
| 4 |
-Redistribution and use in source and binary forms, with or without |
|
| 5 |
-modification, are permitted provided that the following conditions are met: |
|
| 6 |
- |
|
| 7 |
-1. Redistributions of source code must retain the above copyright |
|
| 8 |
- notice, this list of conditions and the following disclaimer. |
|
| 9 |
-2. Redistributions in binary form must reproduce the above copyright |
|
| 10 |
- notice, this list of conditions and the following disclaimer in the |
|
| 11 |
- documentation and/or other materials provided with the distribution. |
|
| 12 |
- |
|
| 13 |
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
|
| 14 |
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
| 15 |
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|
| 16 |
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR |
|
| 17 |
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
|
| 18 |
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
| 19 |
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
| 20 |
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
| 21 |
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|
| 22 |
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| ... | ... |
@@ -3,28 +3,9 @@ dockerfile.vim |
| 3 | 3 |
|
| 4 | 4 |
Syntax highlighting for Dockerfiles |
| 5 | 5 |
|
| 6 |
-Installation |
|
| 7 |
-With [pathogen](https://github.com/tpope/vim-pathogen), the usual way... |
|
| 6 |
+------------------------------------------------------------------------------- |
|
| 8 | 7 |
|
| 9 |
-With [Vundle](https://github.com/gmarik/Vundle.vim) |
|
| 8 |
+dockerfile.vim has been merged into upstream vim, and has therefore been deleted |
|
| 9 |
+from here. You can find the canonical version [here][1]. |
|
| 10 | 10 |
|
| 11 |
- Plugin 'moby/moby' , {'rtp': '/contrib/syntax/vim/'}
|
|
| 12 |
- |
|
| 13 |
-With [vim-plug](https://github.com/junegunn/vim-plug) |
|
| 14 |
- |
|
| 15 |
- Plug 'moby/moby' , {'rtp': '/contrib/syntax/vim/'}
|
|
| 16 |
- |
|
| 17 |
-Features |
|
| 18 |
- |
|
| 19 |
-The syntax highlighting includes: |
|
| 20 |
- |
|
| 21 |
-* The directives (e.g. `FROM`) |
|
| 22 |
-* Strings |
|
| 23 |
-* Comments |
|
| 24 |
- |
|
| 25 |
-License |
|
| 26 |
- |
|
| 27 |
-BSD, short and sweet |
|
| 11 |
+[1]: https://github.com/vim/vim/blob/master/runtime/syntax/dockerfile.vim |
| 28 | 12 |
deleted file mode 100644 |
| ... | ... |
@@ -1,18 +0,0 @@ |
| 1 |
-*dockerfile.txt* Syntax highlighting for Dockerfiles |
|
| 2 |
- |
|
| 3 |
-Author: Honza Pokorny <https://honza.ca> |
|
| 4 |
-License: BSD |
|
| 5 |
- |
|
| 6 |
-INSTALLATION *installation* |
|
| 7 |
- |
|
| 8 |
-Drop it on your Pathogen path and you're all set. |
|
| 9 |
- |
|
| 10 |
-FEATURES *features* |
|
| 11 |
- |
|
| 12 |
-The syntax highlighting includes: |
|
| 13 |
- |
|
| 14 |
-* The directives (e.g. FROM) |
|
| 15 |
-* Strings |
|
| 16 |
-* Comments |
|
| 17 |
- |
|
| 18 |
- vim:tw=78:et:ft=help:norl: |
| 2 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,31 +0,0 @@ |
| 1 |
-" dockerfile.vim - Syntax highlighting for Dockerfiles |
|
| 2 |
-" Maintainer: Honza Pokorny <https://honza.ca> |
|
| 3 |
-" Version: 0.5 |
|
| 4 |
- |
|
| 5 |
- |
|
| 6 |
-if exists("b:current_syntax")
|
|
| 7 |
- finish |
|
| 8 |
-endif |
|
| 9 |
- |
|
| 10 |
-let b:current_syntax = "dockerfile" |
|
| 11 |
- |
|
| 12 |
-syntax case ignore |
|
| 13 |
- |
|
| 14 |
-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/ |
|
| 15 |
-highlight link dockerfileKeyword Keyword |
|
| 16 |
- |
|
| 17 |
-syntax region dockerfileString start=/\v"/ skip=/\v\\./ end=/\v"/ |
|
| 18 |
-highlight link dockerfileString String |
|
| 19 |
- |
|
| 20 |
-syntax match dockerfileComment "\v^\s*#.*$" |
|
| 21 |
-highlight link dockerfileComment Comment |
|
| 22 |
- |
|
| 23 |
-set commentstring=#\ %s |
|
| 24 |
- |
|
| 25 |
-" match "RUN", "CMD", and "ENTRYPOINT" lines, and parse them as shell |
|
| 26 |
-let s:current_syntax = b:current_syntax |
|
| 27 |
-unlet b:current_syntax |
|
| 28 |
-syntax include @SH syntax/sh.vim |
|
| 29 |
-let b:current_syntax = s:current_syntax |
|
| 30 |
-syntax region shLine matchgroup=dockerfileKeyword start=/\v^\s*(RUN|CMD|ENTRYPOINT)\s/ end=/\v$/ contains=@SH |
|
| 31 |
-" since @SH will handle "\" as part of the same line automatically, this "just works" for line continuation too, but with the caveat that it will highlight "RUN echo '" followed by a newline as if it were a block because the "'" is shell line continuation... not sure how to fix that just yet (TODO) |