annotate runtime/syntax/samba.vim @ 8638:11c0e9f60519

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