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