annotate runtime/syntax/debsources.vim @ 4748:4b9503f0c7d3 v7.3.1121

updated for version 7.3.1121 Problem: New regexp engine: adding states that are not used. Solution: Don't add the states.
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Jun 2013 16:51:57 +0200
parents eb6ab7e78925
children 1dea14d4c738
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>
4437
eb6ab7e78925 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4229
diff changeset
5 " Last Change: 2013 May 05
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
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
24 " Match uri's
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
25 syn match debsourcesUri +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\++
4437
eb6ab7e78925 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4229
diff changeset
26 syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(squeeze\|wheezy\|\(old\)\=stable\|testing\|unstable\|sid\|rc-buggy\|experimental\|lucid\|precise\|quantal\|raring\|saucy\)\([-[:alnum:]_./]*\)+
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
27
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
28 " Associate our matches and regions with pretty colours
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
29 hi def link debsourcesLine Error
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
30 hi def link debsourcesKeyword Statement
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
31 hi def link debsourcesDistrKeyword Type
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
32 hi def link debsourcesComment Comment
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
33 hi def link debsourcesUri Constant
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
34
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
35 let b:current_syntax = "debsources"