167
|
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
|
4992
|
15 syntax keyword esmtprcOptions hostname username password starttls certificate_passphrase preconnect identity mda
|
167
|
16
|
|
17 "All keywords
|
4992
|
18 syntax keyword esmtprcIdentifier default enabled disabled required
|
167
|
19
|
|
20 "We're trying to be smarer than /."*@.*/ :)
|
4992
|
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]\+/
|
167
|
23
|
|
24 "String..
|
4992
|
25 syntax region esmtprcString start=/"/ end=/"/
|
167
|
26
|
|
27
|
4992
|
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
|
167
|
33
|
4992
|
34 let b:current_syntax = "esmtprc"
|