2015-09-18 20:28:59 +02:00
|
|
|
## Syntax highlighting for Dockerfiles
|
2015-10-21 15:27:43 +02:00
|
|
|
syntax "Dockerfile" "Dockerfile[^/]*$" "\.dockerfile$"
|
2015-09-18 20:28:59 +02:00
|
|
|
|
|
|
|
## Keywords
|
2019-03-15 08:31:46 +01:00
|
|
|
icolor red "^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)[[:space:]]"
|
2015-09-18 20:28:59 +02:00
|
|
|
|
|
|
|
## Brackets & parenthesis
|
|
|
|
color brightgreen "(\(|\)|\[|\])"
|
|
|
|
|
|
|
|
## Double ampersand
|
|
|
|
color brightmagenta "&&"
|
|
|
|
|
|
|
|
## Comments
|
|
|
|
icolor cyan "^[[: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 "('|\")"
|