2015-05-06 10:37:29 -04:00
## Syntax highlighting for Dockerfiles
syntax "Dockerfile" " Dockerfile[^/]* $"
## Keywords
2016-06-05 11:45:21 -04:00
icolor red "^(ONBUILD\s+)?(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)[[:space:]]"
2015-05-06 10:37:29 -04: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 "('|\")"