1" Vim syntax file 2" Language: group(5) user group file 3" Previous Maintainer: Nikolai Weibull <[email protected]> 4" Latest Revision: 2012-08-05 5 6if exists("b:current_syntax") 7 finish 8endif 9 10let s:cpo_save = &cpo 11set cpo&vim 12 13syn match groupBegin display '^' nextgroup=groupName 14 15syn match groupName contained display '[^:]\+' 16 \ nextgroup=groupPasswordColon 17 18syn match groupPasswordColon contained display ':' 19 \ nextgroup=groupPassword,groupShadow 20 21syn match groupPassword contained display '[^:]*' 22 \ nextgroup=groupGIDColon 23 24syn match groupShadow contained display '[x*]' nextgroup=groupGIDColon 25 26syn match groupGIDColon contained display ':' nextgroup=groupGID 27 28syn match groupGID contained display '\d*' 29 \ nextgroup=groupUserListColon 30 31syn match groupUserListColon contained display ':' nextgroup=groupUserList 32 33syn match groupUserList contained '[^,]\+' 34 \ nextgroup=groupUserListSep 35 36syn match groupUserListSep contained display ',' nextgroup=groupUserList 37 38hi def link groupDelimiter Normal 39hi def link groupName Identifier 40hi def link groupPasswordColon groupDelimiter 41hi def link groupPassword Number 42hi def link groupShadow Special 43hi def link groupGIDColon groupDelimiter 44hi def link groupGID Number 45hi def link groupUserListColon groupDelimiter 46hi def link groupUserList Identifier 47hi def link groupUserListSep groupDelimiter 48 49let b:current_syntax = "group" 50 51let &cpo = s:cpo_save 52unlet s:cpo_save 53