annotate runtime/syntax/fetchmail.vim @ 32180:79ab211a3676 v9.0.1421

patch 9.0.1421: Nu files are not recognized Commit: https://github.com/vim/vim/commit/8aa2a37f8983a7863afa32d9ffbe64b2f2bc70be Author: Amaan Qureshi <amaanq12@gmail.com> Date: Tue Mar 21 21:28:06 2023 +0000 patch 9.0.1421: Nu files are not recognized Problem: Nu files are not recognized. Solution: Add a pattern for Nu files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12172)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Mar 2023 22:30:04 +0100
parents 03e3b0034e31
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
2 " Language: fetchmail(1) RC File
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
29403
03e3b0034e31 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29352
diff changeset
5 " Latest Revision: 2022 Jul 02
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
6
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
7 " Version 6.4.3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
9 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
13 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
14 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
16 syn keyword fetchmailTodo contained FIXME TODO XXX NOTE
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
17
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
18 syn region fetchmailComment start='#' end='$' contains=fetchmailTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
20 syn match fetchmailNumber display '\<\d\+\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
22 syn region fetchmailString start=+"+ skip=+\\\\\|\\"+ end=+"+
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
23 \ contains=fetchmailStringEsc
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
24 syn region fetchmailString start=+'+ skip=+\\\\\|\\'+ end=+'+
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
25 \ contains=fetchmailStringEsc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
27 syn match fetchmailStringEsc contained '\\\([ntb]\|0\d*\|x\x\+\)'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
29 syn region fetchmailKeyword transparent matchgroup=fetchmailKeyword
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
30 \ start='\<poll\|skip\|defaults\>'
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
31 \ end='\<poll\|skip\|defaults\>'
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
32 \ contains=ALLBUT,fetchmailOptions,fetchmailSet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 syn keyword fetchmailServerOpts contained via proto[col] local[domains] port
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
35 \ service auth[enticate] timeout envelope
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
36 \ qvirtual aka interface monitor plugin plugout
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
37 \ dns checkalias uidl interval tracepolls
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
38 \ principal esmtpname esmtppassword
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
39 " removed in 6.3.0
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
40 syn keyword fetchmailServerOpts contained netsec
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
41 syn match fetchmailServerOpts contained '\<bad-header\>'
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
42 syn match fetchmailServerOpts contained '\<no\_s\+\(envelope\|dns\|checkalias\|uidl\)'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
44 syn keyword fetchmailUserOpts contained user[name] is to pass[word] ssl
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
45 \ sslcert sslcertck sslcertfile sslcertpath
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
46 \ sslfingerprint sslkey sslproto folder
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
47 \ smtphost fetchdomains smtpaddress smtpname
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
48 \ antispam mda bsmtp preconnect postconnect
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
49 \ keep flush limitflush fetchall rewrite
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
50 \ stripcr forcecr pass8bits dropstatus
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
51 \ dropdelivered mimedecode idle limit warnings
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
52 \ batchlimit fetchlimit fetchsizelimit
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
53 \ fastuidl expunge properties
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
54 \ sslcommonname
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
55 syn match fetchmailUserOpts contained '\<no\_s\+\(sslcertck\|keep\|flush\|fetchall\|rewrite\|stripcr\|forcecr\|pass8bits\|dropstatus\|dropdelivered\|mimedecode\|idle\)'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
57 syn keyword fetchmailSpecial contained here there
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
59 syn keyword fetchmailNoise and with has wants options
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
60 syn match fetchmailNoise display '[:;,]'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
62 syn keyword fetchmailSet nextgroup=fetchmailOptions skipwhite skipnl set
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
63
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
64 syn keyword fetchmailOptions daemon postmaster bouncemail spambounce
29403
03e3b0034e31 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29352
diff changeset
65 \ softbounce logfile pidfile idfile syslog properties
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
66 syn match fetchmailOptions '\<no\_s\+\(bouncemail\|spambounce\|softbounce\|syslog\)'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
68 hi def link fetchmailComment Comment
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
69 hi def link fetchmailTodo Todo
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
70 hi def link fetchmailNumber Number
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
71 hi def link fetchmailString String
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
72 hi def link fetchmailStringEsc SpecialChar
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
73 hi def link fetchmailKeyword Keyword
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
74 hi def link fetchmailServerOpts Identifier
29352
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
75 hi def link fetchmailUserOpts Identifier
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
76 hi def link fetchmailSpecial Special
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
77 hi def link fetchmailSet Keyword
912224cab37f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
78 hi def link fetchmailOptions Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 let b:current_syntax = "fetchmail"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
82 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
83 unlet s:cpo_save