comparison runtime/syntax/pamconf.vim @ 375:f14cbd913415 v7.0097

updated for version 7.0097
author vimboss
date Wed, 29 Jun 2005 22:40:58 +0000
parents
children 1f3b1021f002
comparison
equal deleted inserted replaced
374:575dacb554d8 375:f14cbd913415
1 " Vim syntax file
2 " Language: pam(8) configuration file
3 " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se>
4 " Latest Revision: 2005-06-29
5
6
7 if exists("b:current_syntax")
8 finish
9 endif
10
11 let s:cpo_save = &cpo
12 set cpo&vim
13
14 syn match pamconfService '^[[:graph:]]\+'
15 \ nextgroup=pamconfType,
16 \ pamconfServiceLineCont skipwhite
17
18 syn keyword pamconfTodo contained TODO FIXME XXX NOTE
19
20 syn region pamconfComment display oneline start='#' end='$'
21 \ contains=pamconfTodo,@Spell
22
23 syn match pamconfServiceLineCont contained '\\$'
24 \ nextgroup=pamconfType,
25 \ pamconfServiceLineCont skipwhite skipnl
26
27 syn keyword pamconfType account auth password session
28 \ nextgroup=pamconfControl,
29 \ pamconfTypeLineCont skipwhite
30
31 syn match pamconfTypeLineCont contained '\\$'
32 \ nextgroup=pamconfControl,
33 \ pamconfTypeLineCont skipwhite skipnl
34
35 syn keyword pamconfControl contained requisite required sufficient
36 \ optional
37 \ nextgroup=pamconfMPath,
38 \ pamconfControlLineContH skipwhite
39
40 syn match pamconfControlBegin '\[' nextgroup=pamconfControlValues,
41 \ pamconfControlLineCont skipwhite
42
43 syn match pamconfControlLineCont contained '\\$'
44 \ nextgroup=pamconfControlValues,
45 \ pamconfControlLineCont skipwhite skipnl
46
47 syn keyword pamconfControlValues contained success open_err symbol_err
48 \ service_err system_err buf_err
49 \ perm_denied auth_err cred_insufficient
50 \ authinfo_unavail user_unknown maxtries
51 \ new_authtok_reqd acct_expired session_err
52 \ cred_unavail cred_expired cred_err
53 \ no_module_data conv_err authtok_err
54 \ authtok_recover_err authtok_lock_busy
55 \ authtok_disable_aging try_again ignore
56 \ abort authtok_expired module_unknown
57 \ bad_item and default
58 \ nextgroup=pamconfControlValueEq
59
60 syn match pamconfControlValueEq contained '=' nextgroup=pamconfControlAction
61
62 syn match pamconfControlActionN contained '\d\+\>'
63 \ nextgroup=pamconfControlValues,
64 \ pamconfControlLineCont,pamconfControlEnd
65 \ skipwhite
66 syn keyword pamconfControlAction contained ignore bad die ok done reset
67 \ nextgroup=pamconfControlValues,
68 \ pamconfControlLineCont,pamconfControlEnd
69 \ skipwhite
70
71 syn match pamconfControlEnd contained '\]'
72 \ nextgroup=pamconfMPath,
73 \ pamconfControlLineContH skipwhite
74
75 syn match pamconfControlLineContH contained '\\$'
76 \ nextgroup=pamconfMPath,
77 \ pamconfControlLineContH skipwhite skipnl
78
79 syn match pamconfMPath contained '\S\+'
80 \ nextgroup=pamconfMPathLineCont,
81 \ pamconfArgs skipwhite
82
83 syn match pamconfArgs contained '\S\+'
84 \ nextgroup=pamconfArgsLineCont,
85 \ pamconfArgs skipwhite
86
87 syn match pamconfMPathLineCont contained '\\$'
88 \ nextgroup=pamconfMPathLineCont,
89 \ pamconfArgs skipwhite skipnl
90
91 syn match pamconfArgsLineCont contained '\\$'
92 \ nextgroup=pamconfArgsLineCont,
93 \ pamconfArgs skipwhite skipnl
94
95 hi def link pamconfTodo Todo
96 hi def link pamconfComment Comment
97 hi def link pamconfService Statement
98 hi def link pamconfServiceLineCont Special
99 hi def link pamconfType Type
100 hi def link pamconfTypeLineCont pamconfServiceLineCont
101 hi def link pamconfControl Macro
102 hi def link pamconfControlBegin Delimiter
103 hi def link pamconfControlLineContH pamconfServiceLineCont
104 hi def link pamconfControlLineCont pamconfServiceLineCont
105 hi def link pamconfControlValues Identifier
106 hi def link pamconfControlValueEq Operator
107 hi def link pamconfControlActionN Number
108 hi def link pamconfControlAction Identifier
109 hi def link pamconfControlEnd Delimiter
110 hi def link pamconfMPath String
111 hi def link pamconfMPathLineCont pamconfServiceLineCont
112 hi def link pamconfArgs Normal
113 hi def link pamconfArgsLineCont pamconfServiceLineCont
114
115 let b:current_syntax = "pamconf"
116
117 let &cpo = s:cpo_save
118 unlet s:cpo_save