blob: 50d6b82562b5f78939ee80d90d858a7c49ff6198 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
Bram Moolenaar0d878b92022-07-01 18:45:04 +01002" Language: fetchmail(1) RC File
3" Maintainer: Doug Kearns <dougkearns@gmail.com>
4" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
Bram Moolenaar5ed11532022-07-06 13:18:11 +01005" Latest Revision: 2022 Jul 02
Bram Moolenaar0d878b92022-07-01 18:45:04 +01006
7" Version 6.4.3
Bram Moolenaar071d4272004-06-13 20:20:40 +00008
Bram Moolenaar42eeac32005-06-29 22:40:58 +00009if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000010 finish
11endif
12
Bram Moolenaar42eeac32005-06-29 22:40:58 +000013let s:cpo_save = &cpo
14set cpo&vim
Bram Moolenaar071d4272004-06-13 20:20:40 +000015
Bram Moolenaar0d878b92022-07-01 18:45:04 +010016syn keyword fetchmailTodo contained FIXME TODO XXX NOTE
Bram Moolenaar071d4272004-06-13 20:20:40 +000017
Bram Moolenaar0d878b92022-07-01 18:45:04 +010018syn region fetchmailComment start='#' end='$' contains=fetchmailTodo,@Spell
Bram Moolenaar071d4272004-06-13 20:20:40 +000019
Bram Moolenaar0d878b92022-07-01 18:45:04 +010020syn match fetchmailNumber display '\<\d\+\>'
Bram Moolenaar071d4272004-06-13 20:20:40 +000021
Bram Moolenaar0d878b92022-07-01 18:45:04 +010022syn region fetchmailString start=+"+ skip=+\\\\\|\\"+ end=+"+
23 \ contains=fetchmailStringEsc
24syn region fetchmailString start=+'+ skip=+\\\\\|\\'+ end=+'+
25 \ contains=fetchmailStringEsc
Bram Moolenaar071d4272004-06-13 20:20:40 +000026
Bram Moolenaar0d878b92022-07-01 18:45:04 +010027syn match fetchmailStringEsc contained '\\\([ntb]\|0\d*\|x\x\+\)'
Bram Moolenaar071d4272004-06-13 20:20:40 +000028
Bram Moolenaar0d878b92022-07-01 18:45:04 +010029syn region fetchmailKeyword transparent matchgroup=fetchmailKeyword
30 \ start='\<poll\|skip\|defaults\>'
31 \ end='\<poll\|skip\|defaults\>'
32 \ contains=ALLBUT,fetchmailOptions,fetchmailSet
Bram Moolenaar071d4272004-06-13 20:20:40 +000033
Bram Moolenaar42eeac32005-06-29 22:40:58 +000034syn keyword fetchmailServerOpts contained via proto[col] local[domains] port
Bram Moolenaar0d878b92022-07-01 18:45:04 +010035 \ 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
40syn keyword fetchmailServerOpts contained netsec
41syn match fetchmailServerOpts contained '\<bad-header\>'
Bram Moolenaar42eeac32005-06-29 22:40:58 +000042syn match fetchmailServerOpts contained '\<no\_s\+\(envelope\|dns\|checkalias\|uidl\)'
Bram Moolenaar071d4272004-06-13 20:20:40 +000043
Bram Moolenaar0d878b92022-07-01 18:45:04 +010044syn 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
55syn match fetchmailUserOpts contained '\<no\_s\+\(sslcertck\|keep\|flush\|fetchall\|rewrite\|stripcr\|forcecr\|pass8bits\|dropstatus\|dropdelivered\|mimedecode\|idle\)'
Bram Moolenaar071d4272004-06-13 20:20:40 +000056
Bram Moolenaar0d878b92022-07-01 18:45:04 +010057syn keyword fetchmailSpecial contained here there
Bram Moolenaar071d4272004-06-13 20:20:40 +000058
Bram Moolenaar0d878b92022-07-01 18:45:04 +010059syn keyword fetchmailNoise and with has wants options
60syn match fetchmailNoise display '[:;,]'
Bram Moolenaar071d4272004-06-13 20:20:40 +000061
Bram Moolenaar0d878b92022-07-01 18:45:04 +010062syn keyword fetchmailSet nextgroup=fetchmailOptions skipwhite skipnl set
Bram Moolenaar071d4272004-06-13 20:20:40 +000063
Bram Moolenaar0d878b92022-07-01 18:45:04 +010064syn keyword fetchmailOptions daemon postmaster bouncemail spambounce
Bram Moolenaar5ed11532022-07-06 13:18:11 +010065 \ softbounce logfile pidfile idfile syslog properties
Bram Moolenaar0d878b92022-07-01 18:45:04 +010066syn match fetchmailOptions '\<no\_s\+\(bouncemail\|spambounce\|softbounce\|syslog\)'
Bram Moolenaar071d4272004-06-13 20:20:40 +000067
Bram Moolenaar0d878b92022-07-01 18:45:04 +010068hi def link fetchmailComment Comment
69hi def link fetchmailTodo Todo
70hi def link fetchmailNumber Number
71hi def link fetchmailString String
72hi def link fetchmailStringEsc SpecialChar
73hi def link fetchmailKeyword Keyword
Bram Moolenaar42eeac32005-06-29 22:40:58 +000074hi def link fetchmailServerOpts Identifier
Bram Moolenaar0d878b92022-07-01 18:45:04 +010075hi def link fetchmailUserOpts Identifier
76hi def link fetchmailSpecial Special
77hi def link fetchmailSet Keyword
78hi def link fetchmailOptions Identifier
Bram Moolenaar071d4272004-06-13 20:20:40 +000079
80let b:current_syntax = "fetchmail"
81
Bram Moolenaar42eeac32005-06-29 22:40:58 +000082let &cpo = s:cpo_save
83unlet s:cpo_save