Ticket #4041: 0001-Recognize-other-sources.list-URI-specifications-and-.patch

File 0001-Recognize-other-sources.list-URI-specifications-and-.patch, 2.7 KB (added by gszymaszek, 4 years ago)
  • misc/syntax/debian-sources-list.syntax

    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  
    11context default 
    22    keyword linestart deb-src brightmagenta/20 
    33    keyword linestart deb brightmagenta/20 
     4 
     5    # Variables 
    46    keyword \$\(ARCH\) brightred/18 
    57 
     8    # Options (delimiters) 
     9    keyword [ yellow/24 
     10    keyword ] yellow/24 
     11 
     12 
     13# Options 
     14context 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 
    644context # \n brown/22 
     45 
     46# Common URI specifications 
     47context cdrom\:\/ \s cyan/24 
     48context copy\: \s cyan/24 
     49context file\:\/ \s cyan/24 
    750context ftp\:\/\/ \s green/6 
    851context http\:\/\/ \s green/6 
    952context https\:\/\/ \s green/6 
    10 context cdrom\:\/ \s yellow/24 
    11 context file\:\/ \s brightcyan/14 
     53context mirror\:\/\/ \s green/6 
     54context mirror\+cdrom\:\/ \s cyan/24 
     55context mirror\+copy\: \s cyan/24 
     56context mirror\+file\:\/ \s cyan/24 
     57context mirror\+ftp\:\/\/ \s green/6 
     58context mirror\+https\:\/\/ \s green/6 
     59context mirror\+rsh\:\/\/ \s green/6 
     60context mirror\+ssh\:\/\/ \s green/6 
     61context rsh\:\/\/ \s green/6 
     62context ssh\:\/\/ \s green/6 
    1263 
    13 ############################################################################### 
     64# Other URI specifications 
     65context mirror\+s3\:\/\/ \s brightgreen/6 
     66context mirror\+tor\+http\:\/\/ \s brightgreen/6 
     67context mirror\+tor\+https\:\/\/ \s brightgreen/6 
     68context s3\:\/\/ \s brightgreen/6 
     69context tor\+http\:\/\/ \s brightgreen/6 
     70context tor\+https\:\/\/ \s brightgreen/6