8803d93872
This may be a breaking change if you are using a plugin that checks the filetype. All the default plugins are now updated, just make the filetype you were checking for previously all lowercase.
27 lines
841 B
Docker
27 lines
841 B
Docker
## Syntax highlighting for Dockerfiles
|
|
syntax "dockerfile" "Dockerfile[^/]*$" "\.dockerfile$"
|
|
|
|
## Keywords
|
|
red (i) "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]"
|
|
|
|
## Brackets & parenthesis
|
|
color brightgreen "(\(|\)|\[|\])"
|
|
|
|
## Double ampersand
|
|
color brightmagenta "&&"
|
|
|
|
## Comments
|
|
cyan (i) "^[[:space:]]*#.*$"
|
|
|
|
## Blank space at EOL
|
|
color ,green "[[:space:]]+$"
|
|
|
|
## Strings, single-quoted
|
|
color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
|
|
|
|
## Strings, double-quoted
|
|
color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
|
|
|
|
## Single and double quotes
|
|
color brightyellow "('|\")"
|