annotate runtime/syntax/changelog.vim @ 7403:dc5ddec635dc

Added tag v7.4.1005 for changeset 2c63e9ecf29d76f613bd426156e6550729d432fc
author Christian Brabandt <cb@256bit.org>
date Thu, 31 Dec 2015 16:15:07 +0100
parents e9ddb2181f06
children 43efa4f5a8ea
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: generic ChangeLog file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Written By: Gediminas Paulauskas <menesis@delfi.lt>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: Corinna Vinschen <vinschen@redhat.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: June 1, 2003
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 if exists('b:changelog_spacing_errors')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 let s:spacing_errors = b:changelog_spacing_errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 elseif exists('g:changelog_spacing_errors')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 let s:spacing_errors = g:changelog_spacing_errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 let s:spacing_errors = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 if s:spacing_errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match changelogError "^ \+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match changelogText "^\s.*$" contains=changelogMail,changelogNumber,changelogMonth,changelogDay,changelogError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match changelogHeader "^\S.*$" contains=changelogNumber,changelogMonth,changelogDay,changelogMail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region changelogFiles start="^\s\+[+*]\s" end=":\s" end="^$" contains=changelogBullet,changelogColon,changelogError keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region changelogFiles start="^\s\+[([]" end=":\s" end="^$" contains=changelogBullet,changelogColon,changelogError keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match changelogColon contained ":\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 else
549
e9ddb2181f06 updated for version 7.0155
vimboss
parents: 7
diff changeset
36 syn region changelogFiles start="^\s\+[+*]\s" end=":" end="^$" contains=changelogBullet,changelogColon,changelogFuncs,changelogError keepend
e9ddb2181f06 updated for version 7.0155
vimboss
parents: 7
diff changeset
37 syn region changelogFiles start="^\s\+[([]" end=":" end="^$" contains=changelogBullet,changelogColon,changelogFuncs,changelogError keepend
e9ddb2181f06 updated for version 7.0155
vimboss
parents: 7
diff changeset
38 syn match changelogFuncs contained "(.\{-})" extend
e9ddb2181f06 updated for version 7.0155
vimboss
parents: 7
diff changeset
39 syn match changelogFuncs contained "\[.\{-}]" extend
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match changelogColon contained ":"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match changelogBullet contained "^\s\+[+*]\s" contains=changelogError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match changelogMail contained "<[A-Za-z0-9\._:+-]\+@[A-Za-z0-9\._-]\+>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword changelogMonth contained jan feb mar apr may jun jul aug sep oct nov dec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword changelogDay contained mon tue wed thu fri sat sun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match changelogNumber contained "[.-]*[0-9]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 if version >= 508 || !exists("did_changelog_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 let did_changelog_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink changelogText Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink changelogBullet Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink changelogColon Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink changelogFiles Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink changelogFuncs Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink changelogHeader Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink changelogMail Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink changelogNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink changelogMonth Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink changelogDay Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink changelogError Folded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 let b:current_syntax = "changelog"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " vim: ts=8