Op 18-01-2026 om 14:16 schreef Jan Niggemann:
Proposed regex:
   syntax sources.list 
"sources\.list(\.d/.*\.(list|sources))?(~|\.old|\.save)?$"

This is not enough to colorize also the *.sources files in the
deb822 format, as those files have an entirely different syntax
and thus need their own rules.  Maybe something like these:

  color green "^(Types|URIs|Suites|Components|Enabled|Signed-By)"
  color yellow "\<(deb(-src)?)\>"
  color lightcyan "https://\S+";
  color lightred "non-free\S*"
  color lightmagenta "/usr/share/\S+"

(To be inserted before the "# Comments." line.  Tested on
an example deb822 file, but probably far from complete.)

Benno


Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to