github.com/jen20/docker@v1.13.1/contrib/syntax/nano/Dockerfile.nanorc (about)

     1  ## Syntax highlighting for Dockerfiles
     2  syntax "Dockerfile" "Dockerfile[^/]*$"
     3  
     4  ## Keywords
     5  icolor red "^(ONBUILD\s+)?(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)[[: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 "('|\")"