annotate runtime/syntax/pamconf.vim @ 10688:3d1872fbecc4 v8.0.0234

patch 8.0.0234: crash when using put in Visual mode commit https://github.com/vim/vim/commit/941c12da3c087fd04aa6c120a76bf28f19349d96 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 24 19:55:43 2017 +0100 patch 8.0.0234: crash when using put in Visual mode Problem: When several lines are visually selected and one of them is short, using put may cause a crash. (Axel Bender) Solution: Check for a short line. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Jan 2017 20:00:04 +0100
parents 3502a7f991fc
children 1218c5353e2b
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>
3082
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
4 " Latest Revision: 2011-08-03
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
3082
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
36 \ optional include substack
375
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
3082
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
60 syn match pamconfControlValueEq contained '='
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
61 \ nextgroup=pamconfControlActionN,
3502a7f991fc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
62 \ pamconfControlAction
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
63
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
64 syn match pamconfControlActionN contained '\d\+\>'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
65 \ nextgroup=pamconfControlValues,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
66 \ pamconfControlLineCont,pamconfControlEnd
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
67 \ skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
68 syn keyword pamconfControlAction contained ignore bad die ok done reset
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
69 \ nextgroup=pamconfControlValues,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
70 \ pamconfControlLineCont,pamconfControlEnd
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
71 \ skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
72
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
73 syn match pamconfControlEnd contained '\]'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
74 \ nextgroup=pamconfMPath,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
75 \ pamconfControlLineContH skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
76
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
77 syn match pamconfControlLineContH contained '\\$'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
78 \ nextgroup=pamconfMPath,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
79 \ pamconfControlLineContH skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
80
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
81 syn match pamconfMPath contained '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
82 \ nextgroup=pamconfMPathLineCont,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
83 \ pamconfArgs skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
84
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
85 syn match pamconfArgs contained '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
86 \ nextgroup=pamconfArgsLineCont,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
87 \ pamconfArgs skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
88
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
89 syn match pamconfMPathLineCont contained '\\$'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
90 \ nextgroup=pamconfMPathLineCont,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
91 \ pamconfArgs skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
92
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
93 syn match pamconfArgsLineCont contained '\\$'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
94 \ nextgroup=pamconfArgsLineCont,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
95 \ pamconfArgs skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
96
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
97 hi def link pamconfTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
98 hi def link pamconfComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
99 hi def link pamconfService Statement
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
100 hi def link pamconfServiceLineCont Special
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
101 hi def link pamconfType Type
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
102 hi def link pamconfTypeLineCont pamconfServiceLineCont
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
103 hi def link pamconfControl Macro
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
104 hi def link pamconfControlBegin Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
105 hi def link pamconfControlLineContH pamconfServiceLineCont
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
106 hi def link pamconfControlLineCont pamconfServiceLineCont
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
107 hi def link pamconfControlValues Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
108 hi def link pamconfControlValueEq Operator
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
109 hi def link pamconfControlActionN Number
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
110 hi def link pamconfControlAction Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
111 hi def link pamconfControlEnd Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
112 hi def link pamconfMPath String
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
113 hi def link pamconfMPathLineCont pamconfServiceLineCont
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
114 hi def link pamconfArgs Normal
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
115 hi def link pamconfArgsLineCont pamconfServiceLineCont
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
116
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
117 let b:current_syntax = "pamconf"
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
118
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
119 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
120 unlet s:cpo_save