annotate runtime/syntax/samba.vim @ 1476:ea1a2950ed16 v7.1.191

updated for version 7.1-191
author vimboss
date Thu, 03 Jan 2008 15:15:07 +0000
parents 404aac550f35
children 7bc41231fbc7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: samba configuration files (smb.conf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Rafael Garcia-Suarez <rgarciasuarez@free.fr>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://rgarciasuarez.free.fr/vim/syntax/samba.vim
26
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
5 " Last change: 2004 September 21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Don't forget to run your config file through testparm(1)!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match sambaParameter /^[a-zA-Z \t]\+=/ contains=sambaKeyword
26
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
20 syn match sambaSection /^\s*\[[a-zA-Z0-9_\-.$ ]\+\]/
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
21 syn match sambaMacro /%[SPugUGHvhmLMNpRdaITD]/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match sambaMacro /%$([a-zA-Z0-9_]\+)/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match sambaComment /^\s*[;#].*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match sambaContinue /\\$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword sambaBoolean true false yes no
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Keywords for Samba 2.0.5a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword sambaKeyword contained account acl action add address admin aliases
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword sambaKeyword contained allow alternate always announce anonymous
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword sambaKeyword contained archive as auto available bind blocking
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword sambaKeyword contained bmpx break browsable browse browseable ca
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword sambaKeyword contained cache case casesignames cert certDir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword sambaKeyword contained certFile change char character chars chat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword sambaKeyword contained ciphers client clientcert code coding
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword sambaKeyword contained command comment compatibility config
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword sambaKeyword contained connections contention controller copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword sambaKeyword contained create deadtime debug debuglevel default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword sambaKeyword contained delete deny descend dfree dir directory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword sambaKeyword contained disk dns domain domains dont dos dot drive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword sambaKeyword contained driver encrypt encrypted equiv exec fake
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword sambaKeyword contained file files filetime filetimes filter follow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword sambaKeyword contained force fstype getwd group groups guest
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword sambaKeyword contained hidden hide home homedir hosts include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword sambaKeyword contained interfaces interval invalid keepalive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword sambaKeyword contained kernel key ldap length level level2 limit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword sambaKeyword contained links list lm load local location lock
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword sambaKeyword contained locking locks log logon logons logs lppause
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword sambaKeyword contained lpq lpresume lprm machine magic mangle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword sambaKeyword contained mangled mangling map mask master max mem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword sambaKeyword contained message min mode modes mux name names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword sambaKeyword contained netbios nis notify nt null offset ok ole
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword sambaKeyword contained only open oplock oplocks options order os
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword sambaKeyword contained output packet page panic passwd password
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword sambaKeyword contained passwords path permissions pipe port
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword sambaKeyword contained postexec postscript prediction preexec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword sambaKeyword contained prefered preferred preload preserve print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword sambaKeyword contained printable printcap printer printers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword sambaKeyword contained printing program protocol proxy public
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword sambaKeyword contained queuepause queueresume raw read readonly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword sambaKeyword contained realname remote require resign resolution
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword sambaKeyword contained resolve restrict revalidate rhosts root
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword sambaKeyword contained script security sensitive server servercert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword sambaKeyword contained service services set share shared short
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword sambaKeyword contained size smb smbrun socket space ssl stack stat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword sambaKeyword contained status strict string strip suffix support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword sambaKeyword contained symlinks sync syslog system time timeout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword sambaKeyword contained times timestamp to trusted ttl unix update
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword sambaKeyword contained use user username users valid version veto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword sambaKeyword contained volume wait wide wins workgroup writable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword sambaKeyword contained write writeable xmit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " New keywords for Samba 2.0.6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword sambaKeyword contained hook hires pid uid close rootpreexec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " New keywords for Samba 2.0.7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword sambaKeyword contained utmp wtmp hostname consolidate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword sambaKeyword contained inherit source environment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " New keywords for Samba 2.2.0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword sambaKeyword contained addprinter auth browsing deleteprinter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword sambaKeyword contained enhanced enumports filemode gid host jobs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword sambaKeyword contained lanman msdfs object os2 posix processes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword sambaKeyword contained scope separator shell show smbd template
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword sambaKeyword contained total vfs winbind wizard
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " New keywords for Samba 2.2.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword sambaKeyword contained large obey pam readwrite restrictions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword sambaKeyword contained unreadable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 " New keywords for Samba 2.2.2 - 2.2.4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword sambaKeyword contained acls allocate bytes count csc devmode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword sambaKeyword contained disable dn egd entropy enum extensions mmap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword sambaKeyword contained policy spin spoolss
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
26
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
95 " Since Samba 3.0.2
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
96 syn keyword sambaKeyword contained abort afs algorithmic backend
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
97 syn keyword sambaKeyword contained charset cups defer display
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
98 syn keyword sambaKeyword contained enable idmap kerberos lookups
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
99 syn keyword sambaKeyword contained methods modules nested NIS ntlm NTLMv2
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
100 syn keyword sambaKeyword contained objects paranoid partners passdb
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
101 syn keyword sambaKeyword contained plaintext prefix primary private
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
102 syn keyword sambaKeyword contained profile quota realm replication
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
103 syn keyword sambaKeyword contained reported rid schannel sendfile sharing
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
104 syn keyword sambaKeyword contained shutdown signing special spnego
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
105 syn keyword sambaKeyword contained store unknown unwriteable
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
106
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 if version >= 508 || !exists("did_samba_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 let did_samba_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 HiLink sambaParameter Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 HiLink sambaKeyword Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 HiLink sambaSection Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 HiLink sambaMacro PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 HiLink sambaComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 HiLink sambaContinue Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 HiLink sambaBoolean Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 let b:current_syntax = "samba"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 " vim: ts=8