| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim syntax file | 
					
						
							| 
									
										
										
										
											2005-06-29 22:40:58 +00:00
										 |  |  | " Language:         fetchmail(1) RC File | 
					
						
							|  |  |  | " Maintainer:       Nikolai Weibull <nikolai+work.vim@bitwi.se> | 
					
						
							| 
									
										
										
										
											2006-03-26 21:06:50 +00:00
										 |  |  | " Latest Revision:  2006-01-25 | 
					
						
							| 
									
										
										
										
											2005-06-29 22:40:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | if exists("b:current_syntax") | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-29 22:40:58 +00:00
										 |  |  | let s:cpo_save = &cpo | 
					
						
							|  |  |  | set cpo&vim | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword fetchmailTodo       contained FIXME TODO XXX NOTE | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn region  fetchmailComment    start='#' end='$' contains=fetchmailTodo,@Spell | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn match   fetchmailNumber     display '\<\d\+\>' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn region  fetchmailString     start=+"+ skip=+\\\\\|\\"+ end=+"+ | 
					
						
							|  |  |  |                                 \ contains=fetchmailStringEsc | 
					
						
							|  |  |  | syn region  fetchmailString     start=+'+ skip=+\\\\\|\\'+ end=+'+ | 
					
						
							|  |  |  |                                 \ contains=fetchmailStringEsc | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn match   fetchmailStringEsc  contained '\\\([ntb]\|0\d*\|x\x\+\)' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn region  fetchmailKeyword    transparent matchgroup=fetchmailKeyword | 
					
						
							|  |  |  |                                 \ start='\<poll\|skip\|defaults\>' | 
					
						
							|  |  |  |                                 \ end='\<poll\|skip\|defaults\>' | 
					
						
							|  |  |  |                                 \ contains=ALLBUT,fetchmailOptions,fetchmailSet | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword fetchmailServerOpts contained via proto[col] local[domains] port | 
					
						
							|  |  |  |                                 \ auth[enticate] timeout envelope qvirtual aka | 
					
						
							|  |  |  |                                 \ interface monitor plugin plugout dns | 
					
						
							|  |  |  |                                 \ checkalias uidl interval netsec principal | 
					
						
							|  |  |  |                                 \ esmtpname esmtppassword | 
					
						
							| 
									
										
										
										
											2006-03-26 21:06:50 +00:00
										 |  |  |                                 \ sslcertck sslcertpath sslfingerprint | 
					
						
							| 
									
										
										
										
											2005-06-29 22:40:58 +00:00
										 |  |  | syn match   fetchmailServerOpts contained '\<no\_s\+\(envelope\|dns\|checkalias\|uidl\)' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword fetchmailUserOpts   contained user[name] is to pass[word] ssl | 
					
						
							|  |  |  |                                 \ sslcert sslkey sslproto folder smtphost | 
					
						
							|  |  |  |                                 \ fetchdomains smtpaddress smtpname antispam | 
					
						
							|  |  |  |                                 \ mda bsmtp preconnect postconnect keep flush | 
					
						
							|  |  |  |                                 \ fetchall rewrite stripcr forcecr pass8bits | 
					
						
							|  |  |  |                                 \ dropstatus dropdelivered mimedecode idle | 
					
						
							|  |  |  |                                 \ limit warnings batchlimit fetchlimit expunge | 
					
						
							|  |  |  |                                 \ tracepolls properties | 
					
						
							|  |  |  | syn match   fetchmailUserOpts   contained '\<no\_s\+\(keep\|flush\|fetchall\|rewrite\|stripcr\|forcecr\|pass8bits\|dropstatus\|dropdelivered\|mimedecode\|noidle\)' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword fetchmailSpecial    contained here there | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword fetchmailNoise      and with has wants options | 
					
						
							|  |  |  | syn match   fetchmailNoise      display '[:;,]' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword fetchmailSet        nextgroup=fetchmailOptions skipwhite skipnl set | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword fetchmailOptions    daemon postmaster bouncemail spambounce logfile | 
					
						
							|  |  |  |                                 \ idfile syslog nosyslog properties | 
					
						
							|  |  |  | syn match   fetchmailOptions    '\<no\_s\+\(bouncemail\|spambounce\)' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | hi def link fetchmailComment    Comment | 
					
						
							|  |  |  | hi def link fetchmailTodo       Todo | 
					
						
							|  |  |  | hi def link fetchmailNumber     Number | 
					
						
							|  |  |  | hi def link fetchmailString     String | 
					
						
							|  |  |  | hi def link fetchmailStringEsc  SpecialChar | 
					
						
							|  |  |  | hi def link fetchmailKeyword    Keyword | 
					
						
							|  |  |  | hi def link fetchmailServerOpts Identifier | 
					
						
							|  |  |  | hi def link fetchmailUserOpts   Identifier | 
					
						
							|  |  |  | hi def link fetchmailSpecial    Special | 
					
						
							|  |  |  | hi def link fetchmailSet        Keyword | 
					
						
							|  |  |  | hi def link fetchmailOptions    Identifier | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "fetchmail" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-29 22:40:58 +00:00
										 |  |  | let &cpo = s:cpo_save | 
					
						
							|  |  |  | unlet s:cpo_save |