7
|
1 " Vim syntax file
|
29352
|
2 " Language: fetchmail(1) RC File
|
|
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
|
|
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
29403
|
5 " Latest Revision: 2022 Jul 02
|
29352
|
6
|
|
7 " Version 6.4.3
|
7
|
8
|
375
|
9 if exists("b:current_syntax")
|
7
|
10 finish
|
|
11 endif
|
|
12
|
375
|
13 let s:cpo_save = &cpo
|
|
14 set cpo&vim
|
7
|
15
|
29352
|
16 syn keyword fetchmailTodo contained FIXME TODO XXX NOTE
|
375
|
17
|
29352
|
18 syn region fetchmailComment start='#' end='$' contains=fetchmailTodo,@Spell
|
7
|
19
|
29352
|
20 syn match fetchmailNumber display '\<\d\+\>'
|
7
|
21
|
29352
|
22 syn region fetchmailString start=+"+ skip=+\\\\\|\\"+ end=+"+
|
|
23 \ contains=fetchmailStringEsc
|
|
24 syn region fetchmailString start=+'+ skip=+\\\\\|\\'+ end=+'+
|
|
25 \ contains=fetchmailStringEsc
|
7
|
26
|
29352
|
27 syn match fetchmailStringEsc contained '\\\([ntb]\|0\d*\|x\x\+\)'
|
7
|
28
|
29352
|
29 syn region fetchmailKeyword transparent matchgroup=fetchmailKeyword
|
|
30 \ start='\<poll\|skip\|defaults\>'
|
|
31 \ end='\<poll\|skip\|defaults\>'
|
|
32 \ contains=ALLBUT,fetchmailOptions,fetchmailSet
|
7
|
33
|
375
|
34 syn keyword fetchmailServerOpts contained via proto[col] local[domains] port
|
29352
|
35 \ service auth[enticate] timeout envelope
|
|
36 \ qvirtual aka interface monitor plugin plugout
|
|
37 \ dns checkalias uidl interval tracepolls
|
|
38 \ principal esmtpname esmtppassword
|
|
39 " removed in 6.3.0
|
|
40 syn keyword fetchmailServerOpts contained netsec
|
|
41 syn match fetchmailServerOpts contained '\<bad-header\>'
|
375
|
42 syn match fetchmailServerOpts contained '\<no\_s\+\(envelope\|dns\|checkalias\|uidl\)'
|
7
|
43
|
29352
|
44 syn keyword fetchmailUserOpts contained user[name] is to pass[word] ssl
|
|
45 \ sslcert sslcertck sslcertfile sslcertpath
|
|
46 \ sslfingerprint sslkey sslproto folder
|
|
47 \ smtphost fetchdomains smtpaddress smtpname
|
|
48 \ antispam mda bsmtp preconnect postconnect
|
|
49 \ keep flush limitflush fetchall rewrite
|
|
50 \ stripcr forcecr pass8bits dropstatus
|
|
51 \ dropdelivered mimedecode idle limit warnings
|
|
52 \ batchlimit fetchlimit fetchsizelimit
|
|
53 \ fastuidl expunge properties
|
|
54 \ sslcommonname
|
|
55 syn match fetchmailUserOpts contained '\<no\_s\+\(sslcertck\|keep\|flush\|fetchall\|rewrite\|stripcr\|forcecr\|pass8bits\|dropstatus\|dropdelivered\|mimedecode\|idle\)'
|
7
|
56
|
29352
|
57 syn keyword fetchmailSpecial contained here there
|
7
|
58
|
29352
|
59 syn keyword fetchmailNoise and with has wants options
|
|
60 syn match fetchmailNoise display '[:;,]'
|
7
|
61
|
29352
|
62 syn keyword fetchmailSet nextgroup=fetchmailOptions skipwhite skipnl set
|
375
|
63
|
29352
|
64 syn keyword fetchmailOptions daemon postmaster bouncemail spambounce
|
29403
|
65 \ softbounce logfile pidfile idfile syslog properties
|
29352
|
66 syn match fetchmailOptions '\<no\_s\+\(bouncemail\|spambounce\|softbounce\|syslog\)'
|
7
|
67
|
29352
|
68 hi def link fetchmailComment Comment
|
|
69 hi def link fetchmailTodo Todo
|
|
70 hi def link fetchmailNumber Number
|
|
71 hi def link fetchmailString String
|
|
72 hi def link fetchmailStringEsc SpecialChar
|
|
73 hi def link fetchmailKeyword Keyword
|
375
|
74 hi def link fetchmailServerOpts Identifier
|
29352
|
75 hi def link fetchmailUserOpts Identifier
|
|
76 hi def link fetchmailSpecial Special
|
|
77 hi def link fetchmailSet Keyword
|
|
78 hi def link fetchmailOptions Identifier
|
7
|
79
|
|
80 let b:current_syntax = "fetchmail"
|
|
81
|
375
|
82 let &cpo = s:cpo_save
|
|
83 unlet s:cpo_save
|