mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
27 lines
831 B
Text
27 lines
831 B
Text
|
## Syntax highlighting for Dockerfiles
|
||
|
syntax "Dockerfile" "Dockerfile[^/]*$"
|
||
|
|
||
|
## Keywords
|
||
|
icolor red "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]"
|
||
|
|
||
|
## 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 "('|\")"
|