robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Christian Clasonvim-patch:5ed11535e069 (#19256)55e81b0fe8

master
2.9 KiB83 linesraw
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
9if exists("b:current_syntax")
10  finish
11endif
12
13let s:cpo_save = &cpo
14set cpo&vim
15
16syn keyword fetchmailTodo	contained FIXME TODO XXX NOTE
17
18syn region  fetchmailComment	start='#' end='$' contains=fetchmailTodo,@Spell
19
20syn match   fetchmailNumber	display '\<\d\+\>'
21
22syn region  fetchmailString	start=+"+ skip=+\\\\\|\\"+ end=+"+
23				\ contains=fetchmailStringEsc
24syn region  fetchmailString	start=+'+ skip=+\\\\\|\\'+ end=+'+
25				\ contains=fetchmailStringEsc
26
27syn match   fetchmailStringEsc	contained '\\\([ntb]\|0\d*\|x\x\+\)'
28
29syn region  fetchmailKeyword	transparent matchgroup=fetchmailKeyword
30				\ start='\<poll\|skip\|defaults\>'
31				\ end='\<poll\|skip\|defaults\>'
32				\ contains=ALLBUT,fetchmailOptions,fetchmailSet
33
34syn 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
40syn keyword fetchmailServerOpts contained netsec
41syn match   fetchmailServerOpts contained '\<bad-header\>'
42syn match   fetchmailServerOpts contained '\<no\_s\+\(envelope\|dns\|checkalias\|uidl\)'
43
44syn 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\)'
56
57syn keyword fetchmailSpecial	contained here there
58
59syn keyword fetchmailNoise	and with has wants options
60syn match   fetchmailNoise	display '[:;,]'
61
62syn keyword fetchmailSet	nextgroup=fetchmailOptions skipwhite skipnl set
63
64syn keyword fetchmailOptions	daemon postmaster bouncemail spambounce
65				\ softbounce logfile pidfile idfile syslog properties
66syn match   fetchmailOptions	'\<no\_s\+\(bouncemail\|spambounce\|softbounce\|syslog\)'
67
68hi 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
74hi def link fetchmailServerOpts Identifier
75hi def link fetchmailUserOpts	Identifier
76hi def link fetchmailSpecial	Special
77hi def link fetchmailSet	Keyword
78hi def link fetchmailOptions	Identifier
79
80let b:current_syntax = "fetchmail"
81
82let &cpo = s:cpo_save
83unlet s:cpo_save