annotate runtime/syntax/pamconf.vim @ 2875:c7d942260772 v7.3.211

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