From a3710f695fbb62ba0c1134994ac45e1ce42c0c56 Mon Sep 17 00:00:00 2001
From: Jordi Mallach <jordi@gnu.org>
Date: Wed, 16 Jul 2014 11:22:02 +0000
Subject: [PATCH] * doc/syntax/debian.nanorc: Add https, tor and spacewalk to
 supported APT methods. * doc/syntax/debian.nanorc: Apply the syntax to
 apt/sources.list.d/ entries as well, as reported by Rodolphe Pelloux-Prayer.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5070 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog                | 7 +++++++
 doc/syntax/debian.nanorc | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 061911ad..be3fe421 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-07-16  Jordi Mallach  <jordi@gnu.org>
+
+	* doc/syntax/debian.nanorc: Add https, tor and spacewalk to supported
+	APT methods.
+	* doc/syntax/debian.nanorc: Apply the syntax to apt/sources.list.d/
+	entries as well, as reported by Rodolphe Pelloux-Prayer.
+
 2014-07-16  Jordi Mallach  <jordi@gnu.org>
 	* doc/man/nano.1, doc/man/rnano.1: Add some escaping and formatting
 	fixes as suggested Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
diff --git a/doc/syntax/debian.nanorc b/doc/syntax/debian.nanorc
index 1083abe7..630b4d02 100644
--- a/doc/syntax/debian.nanorc
+++ b/doc/syntax/debian.nanorc
@@ -1,14 +1,14 @@
 ## Here is an example for apt's sources.list.
 
-syntax "apt/sources.list" "sources\.list(\.old|~)?$"
+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|ftp|rsh|ssh|file|copy):/[^ ]+|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+"
+color brightred "^deb(-src)? ((http(s)?|ftp|rsh|ssh|file|copy|tor|spacewalk):/[^ ]+|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+"
 # URIs.
-color brightgreen "(http|ftp|rsh|ssh|file|copy):/[^ ]+"
+color brightgreen "(http(s)?|ftp|rsh|ssh|file|copy|tor|spacewalk):/[^ ]+"
 # CDroms.
 color brightgreen "cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/"
 # And finally the initial deb tag.
-- 
GitLab