1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-26 02:15:40 +01:00

Merge pull request #61 from bgulla/master

Added Dockerfile syntax abilities.
This commit is contained in:
Anthony Scopatz 2015-09-18 11:46:56 -07:00
commit 50fc83f87a
2 changed files with 27 additions and 0 deletions

26
Dockerfile.nanorc Normal file
View File

@ -0,0 +1,26 @@
## 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 "('|\")"

1
nanorc
View File

@ -12,6 +12,7 @@ include ~/.nano/css.nanorc
include ~/.nano/cython.nanorc include ~/.nano/cython.nanorc
include ~/.nano/dot.nanorc include ~/.nano/dot.nanorc
include ~/.nano/email.nanorc include ~/.nano/email.nanorc
include ~/.nano/Dockerfile.nanorc
include ~/.nano/fish.nanorc include ~/.nano/fish.nanorc
include ~/.nano/fortran.nanorc include ~/.nano/fortran.nanorc
include ~/.nano/gentoo.nanorc include ~/.nano/gentoo.nanorc