0
|
1 " Vim syntax file
|
|
2 " Language: Esmtp setup file (based on esmtp 0.5.0)
|
|
3 " Maintainer: Kornel Kielczewski <kornel@gazeta.pl>
|
|
4 " Last Change: 16 Feb 2005
|
|
5
|
|
6 " For version 5.x: Clear all syntax items
|
|
7 " For version 6.x: Quit when a syntax file was already loaded
|
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14 "All options
|
|
15 :syntax keyword esmtprcOptions hostname username password starttls certificate_passphrase preconnect identity mda
|
|
16
|
|
17 "All keywords
|
|
18 :syntax keyword esmtprcIdentifier default enabled disabled required
|
|
19
|
|
20 "We're trying to be smarer than /."*@.*/ :)
|
|
21 :syntax match esmtprcAddress /[a-z0-9_.-]*[a-z0-9]\+@[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+/
|
|
22 :syntax match esmtprcFulladd /[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+:[0-9]\+/
|
|
23
|
|
24 "String..
|
|
25 :syntax region esmtprcString start=/"/ end=/"/
|
|
26
|
|
27
|
|
28 :highlight link esmtprcOptions Label
|
|
29 :highlight link esmtprcString String
|
|
30 :highlight link esmtprcAddress Type
|
|
31 :highlight link esmtprcIdentifier Identifier
|
|
32 :highlight link esmtprcFulladd Include
|
|
33
|
|
34 let b:current_syntax="esmtprc"
|