" Maintainer: Nikolai :: lone-star :: Weibull <lone-star@home.se>
" URL: http://www.pcppopper.org/
" Latest Revision: 2002-10-24
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" comments
syn region fetchmailComment start="#" end="$"
" todo
syn keyword fetchmailTodo FIXME TODO XXX
" numbers
syn match fetchmailNumber "\<\d\+\>"
" strings
syn region fetchmailString start=+"+ skip=+\\\\\|\\"+ end=+"+
syn region fetchmailString start=+'+ skip=+\\\\\|\\'+ end=+'+
" escape characters in strings
syn match fetchmailStringEsc "\\\([ntb]\|0\d*\|x\x\+\)"
" server entries
syn region fetchmailKeyword transparent matchgroup=fetchmailKeyword start="\<poll\|skip\>" end="\<poll\|skip\>" contains=ALLBUT,fetchmailOptions,fetchmailSet
" server options
syn keyword fetchmailServerOpts contained via proto[col] local[domains] port auth[enticate]
syn keyword fetchmailServerOpts contained timeout envelope qvirtual aka interface monitor
syn keyword fetchmailServerOpts contained plugin plugout dns checkalias uidl interval netsec
syn keyword fetchmailServerOpts contained principal esmtpname esmtppassword
syn match fetchmailServerOpts contained "\<no\_s\+\(envelope\|dns\|checkalias\|uidl\)"
" user options
syn keyword fetchmailUserOpts contained user[name] is to pass[word] ssl sslcert sslkey sslproto folder
syn match fetchmailUserOpts contained "\<no\_s\+\(keep\|flush\|fetchall\|rewrite\|stripcr\|forcecr\|pass8bits\|dropstatus\|dropdelivered\|mimedecode\|noidle\)"
syn keyword fetchmailSpecial contained here there
" noise keywords
syn keyword fetchmailNoise and with has wants options
syn match fetchmailNoise "[:;,]"
" options
syn keyword fetchmailSet nextgroup=fetchmailOptions skipwhite skipnl set