neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

fetchmail.vim (3004B)


      1 " Vim syntax file
      2 " Language:		fetchmail(1) RC File
      3 " Maintainer:		Doug Kearns <dougkearns@gmail.com>
      4 " Previous Maintainer:	Nikolai Weibull <now@bitwi.se>
      5 " Latest Revision:	2022 Jul 02
      6 
      7 " Version 6.4.3
      8 
      9 if exists("b:current_syntax")
     10  finish
     11 endif
     12 
     13 let s:cpo_save = &cpo
     14 set cpo&vim
     15 
     16 syn keyword fetchmailTodo	contained FIXME TODO XXX NOTE
     17 
     18 syn region  fetchmailComment	start='#' end='$' contains=fetchmailTodo,@Spell
     19 
     20 syn match   fetchmailNumber	display '\<\d\+\>'
     21 
     22 syn region  fetchmailString	start=+"+ skip=+\\\\\|\\"+ end=+"+
     23 			\ contains=fetchmailStringEsc
     24 syn region  fetchmailString	start=+'+ skip=+\\\\\|\\'+ end=+'+
     25 			\ contains=fetchmailStringEsc
     26 
     27 syn match   fetchmailStringEsc	contained '\\\([ntb]\|0\d*\|x\x\+\)'
     28 
     29 syn region  fetchmailKeyword	transparent matchgroup=fetchmailKeyword
     30 			\ start='\<poll\|skip\|defaults\>'
     31 			\ end='\<poll\|skip\|defaults\>'
     32 			\ contains=ALLBUT,fetchmailOptions,fetchmailSet
     33 
     34 syn keyword fetchmailServerOpts contained via proto[col] local[domains] port
     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\>'
     42 syn match   fetchmailServerOpts contained '\<no\_s\+\(envelope\|dns\|checkalias\|uidl\)'
     43 
     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\)'
     56 
     57 syn keyword fetchmailSpecial	contained here there
     58 
     59 syn keyword fetchmailNoise	and with has wants options
     60 syn match   fetchmailNoise	display '[:;,]'
     61 
     62 syn keyword fetchmailSet	nextgroup=fetchmailOptions skipwhite skipnl set
     63 
     64 syn keyword fetchmailOptions	daemon postmaster bouncemail spambounce
     65 			\ softbounce logfile pidfile idfile syslog properties
     66 syn match   fetchmailOptions	'\<no\_s\+\(bouncemail\|spambounce\|softbounce\|syslog\)'
     67 
     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
     74 hi def link fetchmailServerOpts Identifier
     75 hi def link fetchmailUserOpts	Identifier
     76 hi def link fetchmailSpecial	Special
     77 hi def link fetchmailSet	Keyword
     78 hi def link fetchmailOptions	Identifier
     79 
     80 let b:current_syntax = "fetchmail"
     81 
     82 let &cpo = s:cpo_save
     83 unlet s:cpo_save