apt's sources syntax highlighting

Bug #880105 reported by Jochums Johannes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nano (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu version: 11.10
Package version: 2.2.6-1

Bug:
Syntax highlighting does not work for files in /etc/apt/sources.list.d/

Fix: in /usr/share/nano/debian.nanorc update syntax line
syntax "apt/sources.list" "sources\.list(\.old|~)?$" "apt/sources.list.d/.+\.list"

Revision history for this message
Jochums Johannes (infernoid) wrote :

After some testing I found that the following example would still not work:

cd /etc/apt/sources.list.d/
nano google-chrome.list

So maybe simpler fix could be:
syntax "apt/sources.list" "\.list(\.old|~)?$"

Added advantage it would also works for files in /var/lib/dpkg/info/

Revision history for this message
Jochums Johannes (infernoid) wrote :

oeps scratch that last line ... ".list" files in /var/lib/dpkg/info/ are other kind of files

Revision history for this message
Jordi Mallach (jordi) wrote :

This should be fixed in 2.4.1-1, now in the development distribution.

Jordi Mallach (jordi)
Changed in nano (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.