annotate runtime/syntax/group.vim @ 835:8bebcabccc2c v7.0e01

updated for version 7.0e01
author vimboss
date Mon, 17 Apr 2006 22:14:47 +0000
parents 4fe8e1a7758e
children 1f3b1021f002
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
3 " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se>
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
4 " Latest Revision: 2005-06-30
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15 syn match groupName contained display '[a-z_][a-z0-9_-]\{0,15}'
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28 syn match groupGID contained display '\d\+'
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33 syn match groupUserList contained '[a-z_][a-z0-9_-]*'
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