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