Benno Schulenberg | 1028d65 | 2014-05-16 20:13:02 +0000 | [diff] [blame] | 1 | ## Here is an example for apt's sources.list. |
| 2 | |
Benno Schulenberg | 1f3148d | 2015-06-02 14:35:21 +0000 | [diff] [blame] | 3 | syntax "sources.list" "sources\.list(~|\.old|\.save)?$" "sources\.list\.d/.*\.list(~|\.old|\.save)?$" |
Mike Scalora | 6a2032f | 2016-05-25 22:13:50 +0200 | [diff] [blame] | 4 | comment "#" |
Benno Schulenberg | 1028d65 | 2014-05-16 20:13:02 +0000 | [diff] [blame] | 5 | |
| 6 | # Coloring the deb lines, working from tail to head. First the |
| 7 | # components -- well, everything, and thus also the components. |
| 8 | color brightmagenta "^deb.*" |
| 9 | # Distribution -- well, everything, except the components. |
Benno Schulenberg | 1f3148d | 2015-06-02 14:35:21 +0000 | [diff] [blame] | 10 | color brightred "^deb(-src)?\s+.*((ftp|https?|rsh|ssh|copy|file|spacewalk|tor):/\S+|cdrom:\[.+\]/)\s+\S+" |
Benno Schulenberg | 1028d65 | 2014-05-16 20:13:02 +0000 | [diff] [blame] | 11 | # URIs. |
Benno Schulenberg | 1f3148d | 2015-06-02 14:35:21 +0000 | [diff] [blame] | 12 | color brightgreen "^deb(-src)?\s+.*(ftp|https?|rsh|ssh|copy|file|spacewalk|tor):/\S+" |
Benno Schulenberg | 1028d65 | 2014-05-16 20:13:02 +0000 | [diff] [blame] | 13 | # CDroms. |
Benno Schulenberg | 1f3148d | 2015-06-02 14:35:21 +0000 | [diff] [blame] | 14 | color brightgreen "^deb(-src)?\s+.*cdrom:\[.+\]/" |
| 15 | # Options. |
| 16 | color brightcyan "^deb(-src)?\s+\[.+\]\s+" |
Benno Schulenberg | 1028d65 | 2014-05-16 20:13:02 +0000 | [diff] [blame] | 17 | # And finally the initial deb tag. |
| 18 | color yellow "^deb(-src)?" |
| 19 | |
| 20 | # Comments. |
Chris Allegretta | cc60c3a | 2008-03-20 05:41:00 +0000 | [diff] [blame] | 21 | color brightblue "#.*" |