2 " Language: aliases(5) local alias database file
3 " Maintainer: Nikolai Weibull <nikolai@bitwi.se>
4 " Latest Revision: 2008-04-14
6 if exists("b:current_syntax")
13 syn keyword mailaliasesTodo contained TODO FIXME XXX NOTE
15 syn region mailaliasesComment display oneline start='^\s*#' end='$'
16 \ contains=mailaliasesTodo,@Spell
18 syn match mailaliasesBegin display '^'
19 \ nextgroup=mailaliasesName,
22 syn match mailaliasesName contained '[[:alnum:]\._-]\+'
23 \ nextgroup=mailaliasesColon
25 syn region mailaliasesName contained oneline start=+"+
26 \ skip=+\\\\\|\\"+ end=+"+
27 \ nextgroup=mailaliasesColon
29 syn match mailaliasesColon contained ':'
30 \ nextgroup=@mailaliasesValue
33 syn cluster mailaliasesValue contains=mailaliasesValueAddress,
34 \ mailaliasesValueFile,
35 \ mailaliasesValueCommand,
36 \ mailaliasesValueInclude
38 syn match mailaliasesValueAddress contained '[^ \t/|,]\+'
39 \ nextgroup=mailaliasesValueSep
42 syn match mailaliasesValueFile contained '/[^,]*'
43 \ nextgroup=mailaliasesValueSep
46 syn match mailaliasesValueCommand contained '|[^,]*'
47 \ nextgroup=mailaliasesValueSep
50 syn match mailaliasesValueInclude contained ':include:[^,]*'
51 \ nextgroup=mailaliasesValueSep
54 syn match mailaliasesValueSep contained ','
55 \ nextgroup=@mailaliasesValue
58 hi def link mailaliasesTodo Todo
59 hi def link mailaliasesComment Comment
60 hi def link mailaliasesName Identifier
61 hi def link mailaliasesColon Delimiter
62 hi def link mailaliasesValueAddress String
63 hi def link mailaliasesValueFile String
64 hi def link mailaliasesValueCommand String
65 hi def link mailaliasesValueInclude PreProc
66 hi def link mailaliasesValueSep Delimiter
68 let b:current_syntax = "mailaliases"