annotate runtime/syntax/samba.vim @ 22814:bb1b21a2aae3 v8.2.1955

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