annotate runtime/syntax/mailaliases.vim @ 925:3d842a9e2bae v7.0.051

updated for version 7.0-051
author vimboss
date Fri, 11 Aug 2006 20:55:20 +0000
parents 4f1b94b51e99
children f4f8014d516e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
1 " Vim syntax file
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
2 " Language: aliases(5) local alias database file
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
3 " Maintainer: Nikolai Weibull <nikolai@bitwi.se>
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
4 " Latest Revision: 2006-01-14
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
5
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
7 finish
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
8 endif
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
9
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
11 set cpo&vim
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
12
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
13 syn keyword mailaliasesTodo contained TODO FIXME XXX NOTE
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
14
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
15 syn region mailaliasesComment display oneline start='^\s*#' end='$'
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
16 \ contains=mailaliasesTodo,@Spell
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
17
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
18 syn match mailaliasesBegin display '^'
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
19 \ nextgroup=mailaliasesName,
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
20 \ mailaliasesComment
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
21
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
22 syn match mailaliasesName contained '[0-9A-Za-z_-]\+'
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
23 \ nextgroup=mailaliasesColon
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
24
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
25 syn region mailaliasesName contained oneline start=+"+
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
26 \ skip=+\\\\\|\\"+ end=+"+
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
27 \ nextgroup=mailaliasesColon
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
28
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
29 syn match mailaliasesColon contained ':'
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
30 \ nextgroup=@mailaliasesValue
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
31 \ skipwhite skipnl
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
32
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
33 syn cluster mailaliasesValue contains=mailaliasesValueAddress,
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
34 \ mailaliasesValueFile,
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
35 \ mailaliasesValueCommand,
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
36 \ mailaliasesValueInclude
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
37
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
38 syn match mailaliasesValueAddress contained '[^ \t/|,]\+'
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
39 \ nextgroup=mailaliasesValueSep
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
40 \ skipwhite skipnl
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
41
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
42 syn match mailaliasesValueFile contained '/[^,]*'
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
43 \ nextgroup=mailaliasesValueSep
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
44 \ skipwhite skipnl
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
45
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
46 syn match mailaliasesValueCommand contained '|[^,]*'
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
47 \ nextgroup=mailaliasesValueSep
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
48 \ skipwhite skipnl
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
49
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
50 syn match mailaliasesValueInclude contained ':include:[^,]*'
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
51 \ nextgroup=mailaliasesValueSep
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
52 \ skipwhite skipnl
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
53
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
54 syn match mailaliasesValueSep contained ','
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
55 \ nextgroup=@mailaliasesValue
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
56 \ skipwhite skipnl
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
57
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
58 hi def link mailaliasesTodo Todo
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
59 hi def link mailaliasesComment Comment
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
60 hi def link mailaliasesName Identifier
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
61 hi def link mailaliasesColon Delimiter
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
62 hi def link mailaliasesValueAddress String
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
63 hi def link mailaliasesValueFile String
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
64 hi def link mailaliasesValueCommand String
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
65 hi def link mailaliasesValueInclude PreProc
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
66 hi def link mailaliasesValueSep Delimiter
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
67
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
68 let b:current_syntax = "mailaliases"
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
69
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
70 let &cpo = s:cpo_save
4f1b94b51e99 updated for version 7.0b02
vimboss
parents:
diff changeset
71 unlet s:cpo_save