2 " Language: Esmtp setup file (based on esmtp 0.5.0)
3 " Maintainer: Kornel Kielczewski <kornel@gazeta.pl>
4 " Last Change: 16 Feb 2005
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
10 elseif exists("b:current_syntax")
15 :syntax keyword esmtprcOptions hostname username password starttls certificate_passphrase preconnect identity mda
18 :syntax keyword esmtprcIdentifier default enabled disabled required
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]\+/
25 :syntax region esmtprcString start=/"/ end=/"/
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
34 let b:current_syntax="esmtprc"