From 66db4cfaf59b11a0f21056a091990d0792d511f9 Mon Sep 17 00:00:00 2001
From: Grzegorz Szymaszek <gszymaszek@short.pl>
Date: Fri, 6 Dec 2019 11:33:25 +0100
Subject: [PATCH] Recognize other sources.list URI specifications and options
---
misc/syntax/debian-sources-list.syntax | 63 ++++++++++++++++++++++++--
1 file changed, 60 insertions(+), 3 deletions(-)
diff --git a/misc/syntax/debian-sources-list.syntax b/misc/syntax/debian-sources-list.syntax
index 2f279bfcf..1ae6b7061 100644
a
|
b
|
|
1 | 1 | context default |
2 | 2 | keyword linestart deb-src brightmagenta/20 |
3 | 3 | keyword linestart deb brightmagenta/20 |
| 4 | |
| 5 | # Variables |
4 | 6 | keyword \$\(ARCH\) brightred/18 |
5 | 7 | |
| 8 | # Options (delimiters) |
| 9 | keyword [ yellow/24 |
| 10 | keyword ] yellow/24 |
| 11 | |
| 12 | |
| 13 | # Options |
| 14 | context exclusive [ ] |
| 15 | # Basic syntax elements |
| 16 | keyword ! yellow/24 |
| 17 | keyword , yellow/24 |
| 18 | keyword = yellow/24 |
| 19 | |
| 20 | # Known options |
| 21 | keyword whole arch white |
| 22 | keyword whole allow-downgrade-to-insecure white |
| 23 | keyword whole allow-insecure white |
| 24 | keyword whole allow-weak white |
| 25 | keyword whole by-hash white |
| 26 | keyword whole check-date white |
| 27 | keyword whole check-valid-until white |
| 28 | keyword whole date-max-future white |
| 29 | keyword whole inrelease-path white |
| 30 | keyword whole lang white |
| 31 | keyword whole pdiffs white |
| 32 | keyword whole signed-by white |
| 33 | keyword whole target white |
| 34 | keyword whole trusted white |
| 35 | keyword whole valid-until-max white |
| 36 | keyword whole valid-until-min white |
| 37 | |
| 38 | # Known values |
| 39 | keyword whole force white |
| 40 | keyword whole no white |
| 41 | keyword whole yes white |
| 42 | |
| 43 | # Comment |
6 | 44 | context # \n brown/22 |
| 45 | |
| 46 | # Common URI specifications |
| 47 | context cdrom\:\/ \s cyan/24 |
| 48 | context copy\: \s cyan/24 |
| 49 | context file\:\/ \s cyan/24 |
7 | 50 | context ftp\:\/\/ \s green/6 |
8 | 51 | context http\:\/\/ \s green/6 |
9 | 52 | context https\:\/\/ \s green/6 |
10 | | context cdrom\:\/ \s yellow/24 |
11 | | context file\:\/ \s brightcyan/14 |
| 53 | context mirror\:\/\/ \s green/6 |
| 54 | context mirror\+cdrom\:\/ \s cyan/24 |
| 55 | context mirror\+copy\: \s cyan/24 |
| 56 | context mirror\+file\:\/ \s cyan/24 |
| 57 | context mirror\+ftp\:\/\/ \s green/6 |
| 58 | context mirror\+https\:\/\/ \s green/6 |
| 59 | context mirror\+rsh\:\/\/ \s green/6 |
| 60 | context mirror\+ssh\:\/\/ \s green/6 |
| 61 | context rsh\:\/\/ \s green/6 |
| 62 | context ssh\:\/\/ \s green/6 |
12 | 63 | |
13 | | ############################################################################### |
| 64 | # Other URI specifications |
| 65 | context mirror\+s3\:\/\/ \s brightgreen/6 |
| 66 | context mirror\+tor\+http\:\/\/ \s brightgreen/6 |
| 67 | context mirror\+tor\+https\:\/\/ \s brightgreen/6 |
| 68 | context s3\:\/\/ \s brightgreen/6 |
| 69 | context tor\+http\:\/\/ \s brightgreen/6 |
| 70 | context tor\+https\:\/\/ \s brightgreen/6 |