annotate runtime/syntax/debsources.vim @ 7382:58958b8c9881 v7.4.996

commit https://github.com/vim/vim/commit/e292d80bede5cb0b9b1ca95176ad6c3fbaae2e0a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 29 19:03:21 2015 +0100 patch 7.4.996 Problem: New GDK files and testdir/Make_all.mak missing from distribution. PC build instructions are outdated. Solution: Add the file to the list. Update PC build instructions.
author Christian Brabandt <cb@256bit.org>
date Tue, 29 Dec 2015 19:15:05 +0100
parents 0303182665d5
children aea5ebf352c4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
1 " Vim syntax file
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
2 " Language: Debian sources.list
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
4 " Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
5 " Last Change: 2015 May 25
2908
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2625
diff changeset
6 " URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debsources.vim
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
7
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
8 " Standard syntax initialization
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
9 if version < 600
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
10 syntax clear
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
12 finish
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
13 endif
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
14
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
15 " case sensitive
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
16 syn case match
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
17
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
18 " A bunch of useful keywords
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
19 syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
20
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
21 " Match comments
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
22 syn match debsourcesComment /#.*/ contains=@Spell
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
23
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
24 let s:cpo = &cpo
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
25 set cpo-=C
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
26 let s:supported = [
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
27 \ 'oldstable', 'stable', 'testing', 'unstable', 'experimental',
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
28 \ 'squeeze', 'wheezy', 'jessie', 'stretch', 'sid', 'rc-buggy',
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
29 \
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
30 \ 'precise', 'trusty', 'utopic', 'vivid', 'wily', 'devel'
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
31 \ ]
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
32 let s:unsupported = [
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
33 \ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato',
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
34 \ 'woody', 'sarge', 'etch', 'lenny',
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
35 \
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
36 \ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty',
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
37 \ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid',
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
38 \ 'maverick', 'natty', 'oneiric', 'quantal', 'raring', 'saucy'
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
39 \ ]
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
40 let &cpo=s:cpo
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
41
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
42 " Match uri's
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
43 syn match debsourcesUri +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\++
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
44 exe 'syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\('. join(s:supported, '\|'). '\)\([-[:alnum:]_./]*\)+'
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
45 exe 'syn match debsourcesUnsupportedDistrKeyword +\([[:alnum:]_./]*\)\('. join(s:unsupported, '\|') .'\)\([-[:alnum:]_./]*\)+'
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
46
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
47 " Associate our matches and regions with pretty colours
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
48 hi def link debsourcesLine Error
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
49 hi def link debsourcesKeyword Statement
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
50 hi def link debsourcesDistrKeyword Type
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
51 hi def link debsourcesUnsupportedDistrKeyword WarningMsg
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
52 hi def link debsourcesComment Comment
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
53 hi def link debsourcesUri Constant
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
54
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
55 let b:current_syntax = "debsources"