micro/runtime/syntax/Dockerfile.micro

21 lines
784 B
Docker
Raw Normal View History

2016-03-21 16:16:02 +00:00
## Syntax highlighting for Dockerfiles
syntax "dockerfile" "Dockerfile[^/]*$" "\.dockerfile$"
2016-03-21 16:16:02 +00:00
## Keywords
2016-10-19 04:34:50 +00:00
color keyword (i) "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD|ARG|HEALTHCHECK|STOPSIGNAL|SHELL)[[: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]?![^!]*!"