Ticket #4040 (new enhancement)

Opened 5 years ago

Last modified 3 years ago

Debian sources.list syntax should apply to all files with .list extension

Reported by: gszymaszek Owned by:
Priority: trivial Milestone: Future Releases
Component: mcedit Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:


Currently only the files having name that ends with sources.list are highlighted using debian-sources-list.syntax. In Debian it is common to place more sources.list entries in separate files in the /etc/apt/sources.list.d directory (like deb-multimedia.list), but those files usually don’t match the sources.list$ regex.

From sources.list(5):

The filenames may only contain letters (a-z and A-Z), digits (0-9), underscore (_), hyphen (-) and period (.) characters. (…) Files (…) have the extension .list.

I think there are at least two solutions to this issue:

  1. match files that end with .list or
  2. match files that end with sources.list or that end with .list, but are located in a directory named sources.list.d.

Change History

comment:1 Changed 3 years ago by andrew_b

  • Milestone set to Future Releases
Note: See TracTickets for help on using tickets.