diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-07-11 04:05:51 +0000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-29 02:12:31 +0000 |
commit | a98a6996c291b3e300d27b791eded9eed333d677 (patch) | |
tree | 51d92f6cac128f938cd0aaa9a8dd0ce7a83d63a9 /runtime/syntax/fetchmail.vim | |
parent | 66bc13163398786c88e20b7cdd61c66978b4d3fb (diff) | |
download | rneovim-a98a6996c291b3e300d27b791eded9eed333d677.tar.gz rneovim-a98a6996c291b3e300d27b791eded9eed333d677.tar.bz2 rneovim-a98a6996c291b3e300d27b791eded9eed333d677.zip |
re-integrate runtime/ vim-patch:0 #938
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7
Excluding:
Amiga icons (*.info, icons/)
doc/hangulin.txt
tutor/
spell/
lang/ (only used for menu translations)
macros/maze/, macros/hanoi/, macros/life/, macros/urm/
These were used to test vi compatibility.
termcap
"Demonstration of a termcap file (for the Amiga and Archimedes)"
Helped-by: Rich Wareham <rjw57@cam.ac.uk>
Helped-by: John <john.schmidt.h@gmail.com>
Helped-by: Yann <yann@yann-salaun.com>
Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com>
Helped-by: drasill <github@tof2k.com>
Helped-by: Tae Sandoval Murgan <taecilla@gmail.com>
Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>
Diffstat (limited to 'runtime/syntax/fetchmail.vim')
-rw-r--r-- | runtime/syntax/fetchmail.vim | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/runtime/syntax/fetchmail.vim b/runtime/syntax/fetchmail.vim new file mode 100644 index 0000000000..89de1ff80d --- /dev/null +++ b/runtime/syntax/fetchmail.vim @@ -0,0 +1,75 @@ +" Vim syntax file +" Language: fetchmail(1) RC File +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 + +if exists("b:current_syntax") + finish +endif + +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 + \ sslcertck sslcertpath sslfingerprint +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 + +let b:current_syntax = "fetchmail" + +let &cpo = s:cpo_save +unlet s:cpo_save |