annotate runtime/syntax/passwd.vim @ 11064:1901db360ca6

Added tag v8.0.0420 for changeset e71d3bdf3bc3d91f7f1f1912b41331ddf460b15c
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Mar 2017 17:45:05 +0100
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1208
diff changeset
2 " Language: passwd(5) password file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1208
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1208
diff changeset
4 " Latest Revision: 2006-10-03
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 set cpo&vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 syn match passwdBegin display '^' nextgroup=passwdAccount
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14
1208
e9a34b503432 updated for version 7.1b
vimboss
parents: 839
diff changeset
15 syn match passwdAccount contained display '[^:]\+'
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 \ nextgroup=passwdPasswordColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18 syn match passwdPasswordColon contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 \ nextgroup=passwdPassword,passwdShadow
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 syn match passwdPassword contained display '[^:]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22 \ nextgroup=passwdUIDColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24 syn match passwdShadow contained display '[x*!]'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25 \ nextgroup=passwdUIDColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27 syn match passwdUIDColon contained display ':' nextgroup=passwdUID
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28
1208
e9a34b503432 updated for version 7.1b
vimboss
parents: 839
diff changeset
29 syn match passwdUID contained display '\d\{0,10}'
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30 \ nextgroup=passwdGIDColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32 syn match passwdGIDColon contained display ':' nextgroup=passwdGID
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33
1208
e9a34b503432 updated for version 7.1b
vimboss
parents: 839
diff changeset
34 syn match passwdGID contained display '\d\{0,10}'
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35 \ nextgroup=passwdGecosColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37 syn match passwdGecosColon contained display ':' nextgroup=passwdGecos
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39 syn match passwdGecos contained display '[^:]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 \ nextgroup=passwdDirColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 syn match passwdDirColon contained display ':' nextgroup=passwdDir
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 syn match passwdDir contained display '/[^:]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45 \ nextgroup=passwdShellColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47 syn match passwdShellColon contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48 \ nextgroup=passwdShell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
50 syn match passwdShell contained display '.*'
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52 hi def link passwdColon Normal
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
53 hi def link passwdAccount Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
54 hi def link passwdPasswordColon passwdColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
55 hi def link passwdPassword Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
56 hi def link passwdShadow Special
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
57 hi def link passwdUIDColon passwdColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
58 hi def link passwdUID Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
59 hi def link passwdGIDColon passwdColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
60 hi def link passwdGID Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
61 hi def link passwdGecosColon passwdColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
62 hi def link passwdGecos Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
63 hi def link passwdDirColon passwdColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
64 hi def link passwdDir Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
65 hi def link passwdShellColon passwdColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
66 hi def link passwdShell Operator
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
67
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
68 let b:current_syntax = "passwd"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
69
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
70 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
71 unlet s:cpo_save