Dockerfile.nanorc 847 B

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