annotate runtime/syntax/debchangelog.vim @ 3306:ded8f5add04c v7.3.420

updated for version 7.3.420 Problem: "it" and "at" don't work properly with a dash in the tag name. Solution: Require a space to match the tag name. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 26 Jan 2012 20:58:26 +0100
parents fd09a9c8468e
children 1b584a6f446c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
2 " Language: Debian changelog files
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
4 " Former Maintainers: Gerfried Fuchs <alfie@ist.org>
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
5 " Wichert Akkerman <wakkerma@debian.org>
2908
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2625
diff changeset
6 " Last Change: 2011 June 01
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2625
diff changeset
7 " URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debchangelog.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Standard syntax initialization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Case doesn't matter for us
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Define some common expressions we can use later on
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
20 syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ "
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
21 syn match debchangelogUrgency contained "; urgency=\(low\|medium\|high\|critical\|emergency\)\( \S.*\)\="
2908
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2625
diff changeset
22 syn match debchangelogTarget contained "\v %(frozen|unstable|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|%(lenny|squeeze)-%(backports%(-sloppy)=|volatile)|%(hardy|lucid|maverick|natty|oneiric)%(-%(security|proposed|updates|backports|commercial|partner))=)+"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match debchangelogVersion contained "(.\{-})"
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
24 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*"
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
25 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match debchangelogEmail contained "<.\{-}>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Define the entries that make up the changelog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogUrgency,debchangelogTarget,debchangelogVersion oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
32 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Associate our matches and regions with pretty colours
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 if version >= 508 || !exists("did_debchangelog_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 let did_debchangelog_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 HiLink debchangelogHeader Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 HiLink debchangelogFooter Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink debchangelogEntry Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink debchangelogCloses Statement
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
47 HiLink debchangelogLP Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink debchangelogUrgency Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink debchangelogName Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink debchangelogVersion Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink debchangelogTarget Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink debchangelogEmail Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 let b:current_syntax = "debchangelog"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " vim: ts=8 sw=2