2 " Language: group(5) user group file
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2006-04-19
6 if exists("b:current_syntax")
13 syn match groupBegin display '^' nextgroup=groupName
15 syn match groupName contained display '[a-z_][a-z0-9_-]\{0,15}'
16 \ nextgroup=groupPasswordColon
18 syn match groupPasswordColon contained display ':'
19 \ nextgroup=groupPassword,groupShadow
21 syn match groupPassword contained display '[^:]*'
22 \ nextgroup=groupGIDColon
24 syn match groupShadow contained display '[x*]' nextgroup=groupGIDColon
26 syn match groupGIDColon contained display ':' nextgroup=groupGID
28 syn match groupGID contained display '\d*'
29 \ nextgroup=groupUserListColon
31 syn match groupUserListColon contained display ':' nextgroup=groupUserList
33 syn match groupUserList contained '[a-z_][a-z0-9_-]*'
34 \ nextgroup=groupUserListSep
36 syn match groupUserListSep contained display ',' nextgroup=groupUserList
38 hi def link groupDelimiter Normal
39 hi def link groupName Identifier
40 hi def link groupPasswordColon groupDelimiter
41 hi def link groupPassword Number
42 hi def link groupShadow Special
43 hi def link groupGIDColon groupDelimiter
44 hi def link groupGID Number
45 hi def link groupUserListColon groupDelimiter
46 hi def link groupUserList Identifier
47 hi def link groupUserListSep groupDelimiter
49 let b:current_syntax = "group"