2016-03-21 16:16:02 +00:00
## Syntax highlighting for Dockerfiles
2016-08-25 00:15:36 +00:00
syntax "dockerfile" " Dockerfile[^/]* $" " \.dockerfile $"
2016-03-21 16:16:02 +00:00
## Keywords
2016-10-18 12:58:09 +00:00
color keyword ( i) "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]"
2016-03-21 16:16:02 +00:00
## Brackets & parenthesis
2016-10-18 12:58:09 +00:00
color statement "(\(|\)|\[|\])"
2016-03-21 16:16:02 +00:00
## Double ampersand
2016-10-18 12:58:09 +00:00
color special "&&"
2016-03-21 16:16:02 +00:00
## Comments
2016-10-18 12:58:09 +00:00
color comment ( i) " ^[[:space:]]*#.* $"
2016-03-21 16:16:02 +00:00
## Strings, single-quoted
2016-10-18 12:58:09 +00:00
color constant.string "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" " %[qw]\$[^ $]*\$ " "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
2016-03-21 16:16:02 +00:00
## Strings, double-quoted
2016-10-18 12:58:09 +00:00
color constant.string "" ( [ ^"]|(\\" ) ) *"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" " %[QW]?\$[^ $]*\$ " "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"