annotate runtime/syntax/gpg.vim @ 1303:da0991871b02 v7.1.017

updated for version 7.1-017
author vimboss
date Thu, 28 Jun 2007 20:02:32 +0000
parents f58cb9bf1260
children 73fe8baea242
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
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
2 " Language: gpg(1) configuration file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 375
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1200
f58cb9bf1260 updated for version 7.1b
vimboss
parents: 839
diff changeset
4 " Latest Revision: 2007-05-06
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
11 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
12
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
13 setlocal iskeyword=@,48-57,-
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
14
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
15 syn keyword gpgTodo contained FIXME TODO XXX NOTE
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
16
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
17 syn region gpgComment contained display oneline start='#' end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
18 \ contains=gpgTodo,gpgID,@Spell
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
19
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
20 syn match gpgID contained display '\<\(0x\)\=\x\{8,}\>'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
21
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
22 syn match gpgBegin display '^' skipwhite nextgroup=gpgComment,gpgOption,gpgCommand
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
24 syn keyword gpgCommand contained skipwhite nextgroup=gpgArg
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
25 \ check-sigs decrypt decrypt-files delete-key
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
26 \ delete-secret-and-public-key delete-secret-key
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
27 \ edit-key encrypt-files export export-all
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
28 \ export-ownertrust export-secret-keys
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
29 \ export-secret-subkeys fast-import fingerprint
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
30 \ gen-prime gen-random import import-ownertrust
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31 \ list-keys list-public-keys list-secret-keys
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
32 \ list-sigs lsign-key nrsign-key print-md print-mds
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
33 \ recv-keys search-keys send-keys sign-key verify
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 \ verify-files
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
35 syn keyword gpgCommand contained skipwhite nextgroup=gpgArgError
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
36 \ check-trustdb clearsign desig-revoke detach-sign
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
37 \ encrypt gen-key gen-revoke help list-packets
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
38 \ rebuild-keydb-caches sign store symmetric
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
39 \ update-trustdb version warranty
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
41 syn keyword gpgOption contained skipwhite nextgroup=gpgArg
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
42 \ attribute-fd cert-digest-algo charset cipher-algo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
43 \ command-fd comment completes-needed compress
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
44 \ compress-algo debug default-cert-check-level
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
45 \ default-key default-preference-list
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
46 \ default-recipient digest-algo disable-cipher-algo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
47 \ disable-pubkey-algo encrypt-to exec-path
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
48 \ export-options group homedir import-options
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
49 \ keyring keyserver keyserver-options load-extension
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
50 \ local-user logger-fd marginals-needed max-cert-depth
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
51 \ notation-data options output override-session-key
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
52 \ passphrase-fd personal-cipher-preferences
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
53 \ personal-compress-preferences
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
54 \ personal-digest-preferences photo-viewer
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
55 \ recipient s2k-cipher-algo s2k-digest-algo s2k-mode
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
56 \ secret-keyring set-filename set-policy-url status-fd
1200
f58cb9bf1260 updated for version 7.1b
vimboss
parents: 839
diff changeset
57 \ trusted-key verify-options
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
58 syn keyword gpgOption contained skipwhite nextgroup=gpgArgError
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
59 \ allow-freeform-uid allow-non-selfsigned-uid
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
60 \ allow-secret-key-import always-trust
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
61 \ armor ask-cert-expire ask-sig-expire
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
62 \ auto-check-trustdb batch debug-all default-comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
63 \ default-recipient-self dry-run emit-version
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
64 \ emulate-md-encode-bug enable-special-filenames
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
65 \ escape-from-lines expert fast-list-mode
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
66 \ fixed-list-mode for-your-eyes-only
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
67 \ force-mdc force-v3-sigs force-v4-certs
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
68 \ gpg-agent-info ignore-crc-error ignore-mdc-error
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
69 \ ignore-time-conflict ignore-valid-from interactive
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
70 \ list-only lock-multiple lock-never lock-once
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
71 \ merge-only no no-allow-non-selfsigned-uid
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
72 \ no-armor no-ask-cert-expire no-ask-sig-expire
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
73 \ no-auto-check-trustdb no-batch no-comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
74 \ no-default-keyring no-default-recipient
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
75 \ no-encrypt-to no-expensive-trust-checks
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
76 \ no-expert no-for-your-eyes-only no-force-v3-sigs
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
77 \ no-force-v4-certs no-greeting no-literal
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
78 \ no-mdc-warning no-options no-permission-warning
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
79 \ no-pgp2 no-pgp6 no-pgp7 no-random-seed-file
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
80 \ no-secmem-warning no-show-notation no-show-photos
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
81 \ no-show-policy-url no-sig-cache no-sig-create-check
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
82 \ no-sk-comments no-tty no-utf8-strings no-verbose
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
83 \ no-version not-dash-escaped openpgp pgp2
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
84 \ pgp6 pgp7 preserve-permissions quiet rfc1991
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
85 \ set-filesize show-keyring show-notation show-photos
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
86 \ show-policy-url show-session-key simple-sk-checksum
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
87 \ sk-comments skip-verify textmode throw-keyid
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
88 \ try-all-secrets use-agent use-embedded-filename
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
89 \ utf8-strings verbose with-colons with-fingerprint
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
90 \ with-key-data yes
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
92 syn match gpgArg contained display '\S\+\(\s\+\S\+\)*' contains=gpgID
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
93 syn match gpgArgError contained display '\S\+\(\s\+\S\+\)*'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
95 hi def link gpgComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
96 hi def link gpgTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
97 hi def link gpgID Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
98 hi def link gpgOption Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
99 hi def link gpgCommand Error
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
100 hi def link gpgArgError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 let b:current_syntax = "gpg"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
104 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
105 unlet s:cpo_save