annotate runtime/syntax/group.vim @ 7390:c6215e9d4b30

Added tag v7.4.999 for changeset f7ed82d38e6d89dc6041eccf824e65c100c110cf
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Dec 2015 13:45:04 +0100
parents 536aa8b0c934
children 1218c5353e2b
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 " Language: group(5) user group file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
3750
536aa8b0c934 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
4 " Latest Revision: 2012-08-05
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 groupBegin display '^' nextgroup=groupName
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14
3750
536aa8b0c934 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
15 syn match groupName contained display '[^:]\+'
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 \ nextgroup=groupPasswordColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18 syn match groupPasswordColon contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 \ nextgroup=groupPassword,groupShadow
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 syn match groupPassword contained display '[^:]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22 \ nextgroup=groupGIDColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24 syn match groupShadow contained display '[x*]' nextgroup=groupGIDColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 syn match groupGIDColon contained display ':' nextgroup=groupGID
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
28 syn match groupGID contained display '\d*'
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 \ nextgroup=groupUserListColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31 syn match groupUserListColon contained display ':' nextgroup=groupUserList
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32
3750
536aa8b0c934 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
33 syn match groupUserList contained '[^,]\+'
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34 \ nextgroup=groupUserListSep
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36 syn match groupUserListSep contained display ',' nextgroup=groupUserList
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 hi def link groupDelimiter Normal
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39 hi def link groupName Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 hi def link groupPasswordColon groupDelimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 hi def link groupPassword Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 hi def link groupShadow Special
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 hi def link groupGIDColon groupDelimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 hi def link groupGID Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45 hi def link groupUserListColon groupDelimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46 hi def link groupUserList Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47 hi def link groupUserListSep groupDelimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49 let b:current_syntax = "group"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52 unlet s:cpo_save