mirror of
https://github.com/scopatz/nanorc
synced 2024-11-30 13:45:53 +01:00
27 lines
817 B
Docker
27 lines
817 B
Docker
## Syntax highlighting for Dockerfiles
|
|
syntax "Dockerfile" "Dockerfile[^/]*$" "\.dockerfile$"
|
|
|
|
## Keywords
|
|
icolor red "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]"
|
|
|
|
## Brackets & parenthesis
|
|
color green "(\(|\)|\[|\])"
|
|
|
|
## Double ampersand
|
|
color magenta "&&"
|
|
|
|
## Comments
|
|
icolor cyan "^[[:space:]]*#.*$"
|
|
|
|
## Blank space at EOL
|
|
color ,green "[[:space:]]+$"
|
|
|
|
## Strings, single-quoted
|
|
color white "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
|
|
|
|
## Strings, double-quoted
|
|
color white ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
|
|
|
|
## Single and double quotes
|
|
color yellow "('|\")"
|