github.com/iaintshine/docker@v1.8.2/contrib/syntax/nano/Dockerfile.nanorc (about) 1 ## Syntax highlighting for Dockerfiles 2 syntax "Dockerfile" "Dockerfile[^/]*$" 3 4 ## Keywords 5 icolor red "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]" 6 7 ## Brackets & parenthesis 8 color brightgreen "(\(|\)|\[|\])" 9 10 ## Double ampersand 11 color brightmagenta "&&" 12 13 ## Comments 14 icolor cyan "^[[:space:]]*#.*$" 15 16 ## Blank space at EOL 17 color ,green "[[:space:]]+$" 18 19 ## Strings, single-quoted 20 color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" 21 22 ## Strings, double-quoted 23 color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" 24 25 ## Single and double quotes 26 color brightyellow "('|\")"