diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-03-23 03:49:03 +0000 |
---|---|---|
committer | <> | 2015-03-25 17:06:51 +0000 |
commit | fb040ea36cb8e2158ccd9100600652f94ae90af1 (patch) | |
tree | dba72a74e84a997c23fa0af7c07a4d831be2deb7 /doc/syntax/debian.nanorc | |
parent | 8b74abeb02c01ddc768c465a826360cf33cec063 (diff) | |
download | nano-tarball-fb040ea36cb8e2158ccd9100600652f94ae90af1.tar.gz |
Imported from /home/lorry/working-area/delta_nano-tarball/nano-2.4.0.tar.gz.HEADnano-2.4.0master
Diffstat (limited to 'doc/syntax/debian.nanorc')
-rw-r--r-- | doc/syntax/debian.nanorc | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/doc/syntax/debian.nanorc b/doc/syntax/debian.nanorc index a945dee..630b4d0 100644 --- a/doc/syntax/debian.nanorc +++ b/doc/syntax/debian.nanorc @@ -1,20 +1,19 @@ -## Here is an exmaple for apt's sources.list -## Adapted from http://milianw.de/blog/Syntax-Highlighting-in-Nano -## (mail@milianw.de). -## -syntax "apt/sources.list" "sources\.list(\.old|~)?$" -# component -color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+ .+$" -# distribution -color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+" -# URI -color brightgreen "(http|file|ftp):/[^ ]+" -# cdroms -# [^\]] does not work... +## Here is an example for apt's sources.list. + +syntax "apt/sources.list" "sources\.list(\.old|~)?$" "apt/sources\.list\.d/.*\.list$" + +# Coloring the deb lines, working from tail to head. First the +# components -- well, everything, and thus also the components. +color brightmagenta "^deb.*" +# Distribution -- well, everything, except the components. +color brightred "^deb(-src)? ((http(s)?|ftp|rsh|ssh|file|copy|tor|spacewalk):/[^ ]+|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+" +# URIs. +color brightgreen "(http(s)?|ftp|rsh|ssh|file|copy|tor|spacewalk):/[^ ]+" +# CDroms. color brightgreen "cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/" -# deb / deb-src -color yellow "^deb" -color yellow "^deb-src" -# comments +# And finally the initial deb tag. +color yellow "^deb(-src)?" + +# Comments. color brightblue "#.*" |