7
|
1 " Vim syntax file
|
31885
|
2 " Language: gpg(1) configuration file
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2010-10-14
|
|
5 " Updated: 2023-01-23 @ObserverOfTime: added a couple of keywords
|
32294
|
6 " 2023-03-21 Todd Zullinger <tmz@pobox.com>: sync with gnupg-2.4.0
|
7
|
7
|
375
|
8 if exists("b:current_syntax")
|
7
|
9 finish
|
|
10 endif
|
|
11
|
375
|
12 let s:cpo_save = &cpo
|
|
13 set cpo&vim
|
|
14
|
1620
|
15 setlocal iskeyword+=-
|
375
|
16
|
31885
|
17 syn keyword gpgTodo contained FIXME TODO XXX NOTE
|
375
|
18
|
31885
|
19 syn region gpgComment contained display oneline start='#' end='$'
|
|
20 \ contains=gpgTodo,gpgID,@Spell
|
375
|
21
|
31885
|
22 syn match gpgID contained display '\<\(0x\)\=\x\{8,}\>'
|
375
|
23
|
31885
|
24 syn match gpgBegin display '^' skipwhite nextgroup=gpgComment,gpgOption,gpgCommand
|
7
|
25
|
31885
|
26 syn keyword gpgCommand contained skipwhite nextgroup=gpgArg
|
32294
|
27 \ change-passphrase check-sig check-signatures
|
|
28 \ check-sigs delete-keys delete-secret-and-public-keys
|
|
29 \ delete-secret-keys desig-revoke export
|
|
30 \ export-secret-keys export-secret-ssh-key
|
|
31 \ export-secret-subkeys export-ssh-key list-key
|
|
32 \ list-keys list-packets list-public-keys
|
|
33 \ list-secret-keys list-sig list-signatures list-sigs
|
|
34 \ passwd send-keys fetch-keys
|
|
35 \ generate-designated-revocation generate-revocation
|
|
36 \ gen-prime gen-random gen-revoke locate-external-keys
|
|
37 \ locate-keys lsign-key options print-md quick-add-key
|
|
38 \ quick-addkey quick-add-uid quick-adduid
|
|
39 \ quick-generate-key quick-gen-key quick-lsign-key
|
|
40 \ quick-revoke-sig quick-revoke-uid quick-revuid
|
|
41 \ quick-set-expire quick-set-primary-uid quick-sign-key
|
|
42 \ quick-update-pref receive-keys recv-keys refresh-keys
|
|
43 \ search-keys show-key show-keys sign-key tofu-policy
|
31885
|
44 syn keyword gpgCommand contained skipwhite nextgroup=gpgArgError
|
32294
|
45 \ card-edit card-status change-pin check-trustdb
|
|
46 \ clear-sign clearsign dearmor dearmour decrypt
|
|
47 \ decrypt-files detach-sign encrypt encrypt-files
|
|
48 \ edit-card edit-key enarmor enarmour export-ownertrust
|
|
49 \ fast-import import import-ownertrust key-edit
|
|
50 \ fingerprint fix-trustdb full-generate-key
|
|
51 \ full-gen-key generate-key gen-key gpgconf-list
|
|
52 \ gpgconf-test list-config list-gcrypt-config
|
|
53 \ list-trustdb no-options print-mds
|
|
54 \ rebuild-keydb-caches server sign store symmetric
|
|
55 \ update-trustdb verify verify-files
|
7
|
56
|
31885
|
57 syn keyword gpgOption contained skipwhite nextgroup=gpgArg
|
32294
|
58 \ aead-algo agent-program attribute-fd attribute-file
|
|
59 \ auto-key-locate bzip2-compress-level cert-digest-algo
|
|
60 \ cert-notation cert-policy-url charset chuid
|
|
61 \ chunk-size cipher-algo command-fd command-file
|
|
62 \ comment compatibility-flags completes-needed
|
|
63 \ compliance compress-algo compression-algo
|
|
64 \ compress-level ctapi-driver debug
|
|
65 \ debug-allow-large-chunks debug-level
|
|
66 \ debug-set-iobuf-size default-cert-check-level
|
|
67 \ default-cert-expire default-cert-level default-key
|
|
68 \ default-keyserver-url default-new-key-algo
|
|
69 \ default-preference-list default-recipient
|
|
70 \ default-sig-expire digest-algo dirmngr-program
|
|
71 \ disable-cipher-algo disable-pubkey-algo display
|
|
72 \ display-charset encrypt-to exec-path export-filter
|
|
73 \ export-options faked-system-time force-ownertrust
|
|
74 \ gpg-agent-info group hidden-encrypt-to
|
|
75 \ hidden-recipient hidden-recipient-file homedir
|
|
76 \ import-filter import-options input-size-hint
|
|
77 \ keyboxd-program keyid-format key-origin keyring
|
|
78 \ keyserver keyserver-options known-notation lc-ctype
|
|
79 \ lc-messages limit-card-insert-tries list-filter
|
|
80 \ list-options local-user log-file logger-fd
|
|
81 \ logger-file marginals-needed max-cert-depth
|
|
82 \ max-output min-cert-level min-rsa-length output
|
|
83 \ override-session-key override-session-key-fd
|
|
84 \ passphrase passphrase-fd passphrase-file
|
|
85 \ passphrase-repeat pcsc-driver
|
|
86 \ personal-aead-preferences personal-cipher-preferences
|
|
87 \ personal-cipher-prefs personal-compress-preferences
|
|
88 \ personal-compress-prefs personal-digest-preferences
|
|
89 \ photo-viewer pinentry-mode primary-keyring
|
|
90 \ reader-port recipient recipient-file remote-user
|
|
91 \ request-origin s2k-cipher-algo s2k-count
|
|
92 \ s2k-digest-algo s2k-mode secret-keyring sender
|
|
93 \ set-filename set-filesize set-notation set-policy-url
|
|
94 \ sig-keyserver-url sig-notation sign-with
|
|
95 \ sig-policy-url status-fd status-file temp-directory
|
|
96 \ tofu-db-format tofu-default-policy trustdb-name
|
|
97 \ trusted-key trust-model try-secret-key ttyname
|
|
98 \ ttytype ungroup user verify-options weak-digest
|
|
99 \ xauthority
|
31885
|
100 syn keyword gpgOption contained skipwhite nextgroup=gpgArgError
|
32294
|
101 \ allow-freeform-uid allow-multiple-messages
|
|
102 \ allow-multisig-verification allow-non-selfsigned-uid
|
|
103 \ allow-old-cipher-algos allow-secret-key-import
|
|
104 \ allow-weak-digest-algos allow-weak-key-signatures
|
|
105 \ always-trust armor armour ask-cert-expire
|
|
106 \ ask-cert-level ask-sig-expire auto-check-trustdb
|
|
107 \ auto-key-import auto-key-retrieve batch
|
|
108 \ bzip2-decompress-lowmem compress-keys compress-sigs
|
|
109 \ debug-all debug-iolbf debug-quick-random
|
|
110 \ default-comment default-recipient-self disable-ccid
|
|
111 \ disable-dirmngr disable-dsa2 disable-large-rsa
|
|
112 \ disable-mdc disable-signer-uid dry-run dump-options
|
|
113 \ dump-option-table emit-version enable-dsa2
|
|
114 \ enable-large-rsa enable-progress-filter
|
|
115 \ enable-special-filenames encrypt-to-default-key
|
|
116 \ escape-from-lines exit-on-status-write-error expert
|
|
117 \ fast-list-mode file-is-digest fixed-list-mode
|
|
118 \ forbid-gen-key force-aead force-mdc force-ocb
|
|
119 \ force-sign-key force-v3-sigs force-v4-certs
|
|
120 \ for-your-eyes-only full-timestrings gnupg help
|
|
121 \ honor-http-proxy ignore-crc-error ignore-mdc-error
|
|
122 \ ignore-time-conflict ignore-valid-from
|
|
123 \ include-key-block interactive legacy-list-mode
|
31885
|
124 \ list-only lock-multiple lock-never lock-once
|
32294
|
125 \ mangle-dos-filenames merge-only mimemode multifile no
|
|
126 \ no-allow-freeform-uid no-allow-multiple-messages
|
|
127 \ no-allow-non-selfsigned-uid no-armor no-armour
|
|
128 \ no-ask-cert-expire no-ask-cert-level
|
|
129 \ no-ask-sig-expire no-auto-check-trustdb
|
|
130 \ no-auto-key-import no-auto-key-locate
|
|
131 \ no-auto-key-retrieve no-autostart
|
|
132 \ no-auto-trust-new-key no-batch no-comments
|
31885
|
133 \ no-default-keyring no-default-recipient
|
32294
|
134 \ no-disable-mdc no-emit-version no-encrypt-to
|
|
135 \ no-escape-from-lines no-expensive-trust-checks
|
|
136 \ no-expert no-force-mdc no-force-v3-sigs
|
|
137 \ no-force-v4-certs no-for-your-eyes-only no-greeting
|
|
138 \ no-groups no-include-key-block no-keyring no-literal
|
|
139 \ no-mangle-dos-filenames no-mdc-warning
|
|
140 \ no-permission-warning no-pgp2 no-pgp6 no-pgp7 no-pgp8
|
|
141 \ no-random-seed-file no-require-backsigs
|
|
142 \ no-require-cross-certification no-require-secmem
|
|
143 \ no-rfc2440-text no-secmem-warning no-show-notation
|
|
144 \ no-show-photos no-show-policy-url no-sig-cache
|
|
145 \ no-sk-comments no-skip-hidden-recipients
|
|
146 \ no-symkey-cache not-dash-escaped no-textmode
|
|
147 \ no-throw-keyids no-tty no-use-agent
|
|
148 \ no-use-embedded-filename no-utf8-strings no-verbose
|
|
149 \ no-version only-sign-text-ids openpgp
|
|
150 \ override-compliance-check pgp6 pgp7 pgp8
|
|
151 \ preserve-permissions print-dane-records quiet
|
|
152 \ require-backsigs require-compliance
|
|
153 \ require-cross-certification require-secmem rfc2440
|
|
154 \ rfc2440-text rfc4880 rfc4880bis show-keyring
|
|
155 \ show-notation show-photos show-policy-url
|
|
156 \ show-session-key sk-comments skip-hidden-recipients
|
|
157 \ skip-verify textmode throw-keyids try-all-secrets
|
|
158 \ unwrap use-agent use-embedded-filename use-keyboxd
|
|
159 \ use-only-openpgp-card utf8-strings verbose version
|
|
160 \ warranty with-colons with-fingerprint
|
|
161 \ with-icao-spelling with-key-data with-keygrip
|
|
162 \ with-key-origin with-key-screening with-secret
|
|
163 \ with-sig-check with-sig-list with-subkey-fingerprint
|
|
164 \ with-subkey-fingerprints with-tofu-info with-wkd-hash
|
|
165 \ yes
|
7
|
166
|
31885
|
167 syn match gpgArg contained display '\S\+\(\s\+\S\+\)*' contains=gpgID
|
375
|
168 syn match gpgArgError contained display '\S\+\(\s\+\S\+\)*'
|
7
|
169
|
31885
|
170 hi def link gpgComment Comment
|
|
171 hi def link gpgTodo Todo
|
|
172 hi def link gpgID Number
|
|
173 hi def link gpgOption Keyword
|
|
174 hi def link gpgCommand Error
|
32294
|
175 hi def link gpgArgError Error
|
7
|
176
|
|
177 let b:current_syntax = "gpg"
|
|
178
|
375
|
179 let &cpo = s:cpo_save
|
|
180 unlet s:cpo_save
|