blob: 0027fd4ef830100de4cd7fd0d542b5b83c8a33e9 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: Novell "NCF" Batch File
3" Maintainer: Jonathan J. Miner <miner@doit.wisc.edu>
4" Last Change: Tue, 04 Sep 2001 16:20:33 CDT
Bram Moolenaar5c736222010-01-06 20:54:52 +01005" $Id: ncf.vim,v 1.1 2004/06/13 16:31:58 vimboss Exp $
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
Bram Moolenaar89bcfda2016-08-30 23:26:57 +02007" quit when a syntax file was already loaded
8if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +00009 finish
10endif
11
12syn case ignore
13
14syn keyword ncfCommands mount load unload
15syn keyword ncfBoolean on off
16syn keyword ncfCommands set nextgroup=ncfSetCommands
17syn keyword ncfTimeTypes Reference Primary Secondary Single
18syn match ncfLoad "\(unl\|l\)oad .*"lc=4 contains=ALLBUT,Error
19syn match ncfMount "mount .*"lc=5 contains=ALLBUT,Error
20
21syn match ncfComment "^\ *rem.*$"
22syn match ncfComment "^\ *;.*$"
23syn match ncfComment "^\ *#.*$"
24
25syn match ncfSearchPath "search \(add\|del\) " nextgroup=ncfPath
26syn match ncfPath "\<[^: ]\+:\([A-Za-z0-9._]\|\\\)*\>"
27syn match ncfServerName "^file server name .*$"
28syn match ncfIPXNet "^ipx internal net"
29
30" String
31syn region ncfString start=+"+ end=+"+
32syn match ncfContString "= \(\(\.\{0,1}\(OU=\|O=\)\{0,1}[A-Z_]\+\)\+;\{0,1}\)\+"lc=2
33
34syn match ncfHexNumber "\<\d\(\d\+\|[A-F]\+\)*\>"
35syn match ncfNumber "\<\d\+\.\{0,1}\d*\>"
36syn match ncfIPAddr "\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}"
37syn match ncfTime "\(+|=\)\{0,1}\d\{1,2}:\d\{1,2}:\d\{1,2}"
38syn match ncfDSTTime "([^ ]\+ [^ ]\+ \(FIRST\|LAST\)\s*\d\{1,2}:\d\{1,2}:\d\{1,2} \(AM\|PM\))"
39syn match ncfTimeZone "[A-Z]\{3}\d[A-Z]\{3}"
40
41syn match ncfLogins "^\([Dd]is\|[Ee]n\)able login[s]*"
42syn match ncfScript "[^ ]*\.ncf"
43
44" SET Commands that take a Number following
45syn match ncfSetCommandsNum "\(Alert Message Nodes\)\s*="
46syn match ncfSetCommandsNum "\(Auto Restart After Abend\)\s*="
47syn match ncfSetCommandsNum "\(Auto Restart After Abend Delay Time\)\s*="
48syn match ncfSetCommandsNum "\(Compression Daily Check Starting Hour\)\s*="
49syn match ncfSetCommandsNum "\(Compression Daily Check Stop Hour\)\s*="
50syn match ncfSetCommandsNum "\(Concurrent Remirror Requests\)\s*="
51syn match ncfSetCommandsNum "\(Convert Compressed to Uncompressed Option\)\s*="
52syn match ncfSetCommandsNum "\(Days Untouched Before Compression\)\s*="
53syn match ncfSetCommandsNum "\(Decompress Free Space Warning Interval\)\s*="
54syn match ncfSetCommandsNum "\(Decompress Percent Disk Space Free to Allow Commit\)\s*="
55syn match ncfSetCommandsNum "\(Deleted Files Compression Option\)\s*="
56syn match ncfSetCommandsNum "\(Directory Cache Allocation Wait Time\)\s*="
57syn match ncfSetCommandsNum "\(Enable IPX Checksums\)\s*="
58syn match ncfSetCommandsNum "\(Garbage Collection Interval\)\s*="
59syn match ncfSetCommandsNum "\(IPX NetBIOS Replication Option\)\s*="
60syn match ncfSetCommandsNum "\(Maximum Concurrent Compressions\)\s*="
61syn match ncfSetCommandsNum "\(Maximum Concurrent Directory Cache Writes\)\s*="
62syn match ncfSetCommandsNum "\(Maximum Concurrent Disk Cache Writes\)\s*="
63syn match ncfSetCommandsNum "\(Maximum Directory Cache Buffers\)\s*="
64syn match ncfSetCommandsNum "\(Maximum Extended Attributes per File or Path\)\s*="
65syn match ncfSetCommandsNum "\(Maximum File Locks\)\s*="
66syn match ncfSetCommandsNum "\(Maximum File Locks Per Connection\)\s*="
67syn match ncfSetCommandsNum "\(Maximum Interrupt Events\)\s*="
68syn match ncfSetCommandsNum "\(Maximum Number of Directory Handles\)\s*="
69syn match ncfSetCommandsNum "\(Maximum Number of Internal Directory Handles\)\s*="
70syn match ncfSetCommandsNum "\(Maximum Outstanding NCP Searches\)\s*="
71syn match ncfSetCommandsNum "\(Maximum Packet Receive Buffers\)\s*="
72syn match ncfSetCommandsNum "\(Maximum Physical Receive Packet Size\)\s*="
73syn match ncfSetCommandsNum "\(Maximum Record Locks\)\s*="
74syn match ncfSetCommandsNum "\(Maximum Record Locks Per Connection\)\s*="
75syn match ncfSetCommandsNum "\(Maximum Service Processes\)\s*="
76syn match ncfSetCommandsNum "\(Maximum Subdirectory Tree Depth\)\s*="
77syn match ncfSetCommandsNum "\(Maximum Transactions\)\s*="
78syn match ncfSetCommandsNum "\(Minimum Compression Percentage Gain\)\s*="
79syn match ncfSetCommandsNum "\(Minimum Directory Cache Buffers\)\s*="
80syn match ncfSetCommandsNum "\(Minimum File Cache Buffers\)\s*="
81syn match ncfSetCommandsNum "\(Minimum File Cache Report Threshold\)\s*="
82syn match ncfSetCommandsNum "\(Minimum Free Memory for Garbage Collection\)\s*="
83syn match ncfSetCommandsNum "\(Minimum Packet Receive Buffers\)\s*="
84syn match ncfSetCommandsNum "\(Minimum Service Processes\)\s*="
85syn match ncfSetCommandsNum "\(NCP Packet Signature Option\)\s*="
86syn match ncfSetCommandsNum "\(NDS Backlink Interval\)\s*="
87syn match ncfSetCommandsNum "\(NDS Client NCP Retries\)\s*="
88syn match ncfSetCommandsNum "\(NDS External Reference Life Span\)\s*="
89syn match ncfSetCommandsNum "\(NDS Inactivity Synchronization Interval\)\s*="
90syn match ncfSetCommandsNum "\(NDS Janitor Interval\)\s*="
91syn match ncfSetCommandsNum "\(New Service Process Wait Time\)\s*="
92syn match ncfSetCommandsNum "\(Number of Frees for Garbage Collection\)\s*="
93syn match ncfSetCommandsNum "\(Number of Watchdog Packets\)\s*="
94syn match ncfSetCommandsNum "\(Pseudo Preemption Count\)\s*="
95syn match ncfSetCommandsNum "\(Read Ahead LRU Sitting Time Threshold\)\s*="
96syn match ncfSetCommandsNum "\(Remirror Block Size\)\s*="
97syn match ncfSetCommandsNum "\(Reserved Buffers Below 16 Meg\)\s*="
98syn match ncfSetCommandsNum "\(Server Log File Overflow Size\)\s*="
99syn match ncfSetCommandsNum "\(Server Log File State\)\s*="
100syn match ncfSetCommandsNum "\(SMP Polling Count\)\s*="
101syn match ncfSetCommandsNum "\(SMP Stack Size\)\s*="
102syn match ncfSetCommandsNum "\(TIMESYNC Polling Count\)\s*="
103syn match ncfSetCommandsNum "\(TIMESYNC Polling Interval\)\s*="
104syn match ncfSetCommandsNum "\(TIMESYNC Synchronization Radius\)\s*="
105syn match ncfSetCommandsNum "\(TIMESYNC Write Value\)\s*="
106syn match ncfSetCommandsNum "\(Volume Log File Overflow Size\)\s*="
107syn match ncfSetCommandsNum "\(Volume Log File State\)\s*="
108syn match ncfSetCommandsNum "\(Volume Low Warning Reset Threshold\)\s*="
109syn match ncfSetCommandsNum "\(Volume Low Warning Threshold\)\s*="
110syn match ncfSetCommandsNum "\(Volume TTS Log File Overflow Size\)\s*="
111syn match ncfSetCommandsNum "\(Volume TTS Log File State\)\s*="
112syn match ncfSetCommandsNum "\(Worker Thread Execute In a Row Count\)\s*="
113
114" SET Commands that take a Boolean (ON/OFF)
115
116syn match ncfSetCommandsBool "\(Alloc Memory Check Flag\)\s*="
117syn match ncfSetCommandsBool "\(Allow Audit Passwords\)\s*="
118syn match ncfSetCommandsBool "\(Allow Change to Client Rights\)\s*="
119syn match ncfSetCommandsBool "\(Allow Deletion of Active Directories\)\s*="
120syn match ncfSetCommandsBool "\(Allow Invalid Pointers\)\s*="
121syn match ncfSetCommandsBool "\(Allow LIP\)\s*="
122syn match ncfSetCommandsBool "\(Allow Unencrypted Passwords\)\s*="
123syn match ncfSetCommandsBool "\(Allow Unowned Files To Be Extended\)\s*="
124syn match ncfSetCommandsBool "\(Auto Register Memory Above 16 Megabytes\)\s*="
125syn match ncfSetCommandsBool "\(Auto TTS Backout Flag\)\s*="
126syn match ncfSetCommandsBool "\(Automatically Repair Bad Volumes\)\s*="
127syn match ncfSetCommandsBool "\(Check Equivalent to Me\)\s*="
128syn match ncfSetCommandsBool "\(Command Line Prompt Default Choice\)\s*="
129syn match ncfSetCommandsBool "\(Console Display Watchdog Logouts\)\s*="
130syn match ncfSetCommandsBool "\(Daylight Savings Time Status\)\s*="
131syn match ncfSetCommandsBool "\(Developer Option\)\s*="
132syn match ncfSetCommandsBool "\(Display Incomplete IPX Packet Alerts\)\s*="
133syn match ncfSetCommandsBool "\(Display Lost Interrupt Alerts\)\s*="
134syn match ncfSetCommandsBool "\(Display NCP Bad Component Warnings\)\s*="
135syn match ncfSetCommandsBool "\(Display NCP Bad Length Warnings\)\s*="
136syn match ncfSetCommandsBool "\(Display Old API Names\)\s*="
137syn match ncfSetCommandsBool "\(Display Relinquish Control Alerts\)\s*="
138syn match ncfSetCommandsBool "\(Display Spurious Interrupt Alerts\)\s*="
139syn match ncfSetCommandsBool "\(Enable Deadlock Detection\)\s*="
140syn match ncfSetCommandsBool "\(Enable Disk Read After Write Verify\)\s*="
141syn match ncfSetCommandsBool "\(Enable File Compression\)\s*="
142syn match ncfSetCommandsBool "\(Enable IO Handicap Attribute\)\s*="
143syn match ncfSetCommandsBool "\(Enable SECURE.NCF\)\s*="
144syn match ncfSetCommandsBool "\(Fast Volume Mounts\)\s*="
145syn match ncfSetCommandsBool "\(Global Pseudo Preemption\)\s*="
146syn match ncfSetCommandsBool "\(Halt System on Invalid Parameters\)\s*="
147syn match ncfSetCommandsBool "\(Ignore Disk Geometry\)\s*="
148syn match ncfSetCommandsBool "\(Immediate Purge of Deleted Files\)\s*="
149syn match ncfSetCommandsBool "\(NCP File Commit\)\s*="
150syn match ncfSetCommandsBool "\(NDS Trace File Length to Zero\)\s*="
151syn match ncfSetCommandsBool "\(NDS Trace to File\)\s*="
152syn match ncfSetCommandsBool "\(NDS Trace to Screen\)\s*="
153syn match ncfSetCommandsBool "\(New Time With Daylight Savings Time Status\)\s*="
154syn match ncfSetCommandsBool "\(Read Ahead Enabled\)\s*="
155syn match ncfSetCommandsBool "\(Read Fault Emulation\)\s*="
156syn match ncfSetCommandsBool "\(Read Fault Notification\)\s*="
157syn match ncfSetCommandsBool "\(Reject NCP Packets with Bad Components\)\s*="
158syn match ncfSetCommandsBool "\(Reject NCP Packets with Bad Lengths\)\s*="
159syn match ncfSetCommandsBool "\(Replace Console Prompt with Server Name\)\s*="
160syn match ncfSetCommandsBool "\(Reply to Get Nearest Server\)\s*="
161syn match ncfSetCommandsBool "\(SMP Developer Option\)\s*="
162syn match ncfSetCommandsBool "\(SMP Flush Processor Cache\)\s*="
163syn match ncfSetCommandsBool "\(SMP Intrusive Abend Mode\)\s*="
164syn match ncfSetCommandsBool "\(SMP Memory Protection\)\s*="
165syn match ncfSetCommandsBool "\(Sound Bell for Alerts\)\s*="
166syn match ncfSetCommandsBool "\(TIMESYNC Configured Sources\)\s*="
167syn match ncfSetCommandsBool "\(TIMESYNC Directory Tree Mode\)\s*="
168syn match ncfSetCommandsBool "\(TIMESYNC Hardware Clock\)\s*="
169syn match ncfSetCommandsBool "\(TIMESYNC RESET\)\s*="
170syn match ncfSetCommandsBool "\(TIMESYNC Restart Flag\)\s*="
171syn match ncfSetCommandsBool "\(TIMESYNC Service Advertising\)\s*="
172syn match ncfSetCommandsBool "\(TIMESYNC Write Parameters\)\s*="
173syn match ncfSetCommandsBool "\(TTS Abort Dump Flag\)\s*="
174syn match ncfSetCommandsBool "\(Upgrade Low Priority Threads\)\s*="
175syn match ncfSetCommandsBool "\(Volume Low Warn All Users\)\s*="
176syn match ncfSetCommandsBool "\(Write Fault Emulation\)\s*="
177syn match ncfSetCommandsBool "\(Write Fault Notification\)\s*="
178
179" Set Commands that take a "string" -- NOT QUOTED
180
181syn match ncfSetCommandsStr "\(Default Time Server Type\)\s*="
182syn match ncfSetCommandsStr "\(SMP NetWare Kernel Mode\)\s*="
183syn match ncfSetCommandsStr "\(Time Zone\)\s*="
184syn match ncfSetCommandsStr "\(TIMESYNC ADD Time Source\)\s*="
185syn match ncfSetCommandsStr "\(TIMESYNC REMOVE Time Source\)\s*="
186syn match ncfSetCommandsStr "\(TIMESYNC Time Source\)\s*="
187syn match ncfSetCommandsStr "\(TIMESYNC Type\)\s*="
188
189" SET Commands that take a "Time"
190
191syn match ncfSetCommandsTime "\(Command Line Prompt Time Out\)\s*="
192syn match ncfSetCommandsTime "\(Delay Before First Watchdog Packet\)\s*="
193syn match ncfSetCommandsTime "\(Delay Between Watchdog Packets\)\s*="
194syn match ncfSetCommandsTime "\(Directory Cache Buffer NonReferenced Delay\)\s*="
195syn match ncfSetCommandsTime "\(Dirty Directory Cache Delay Time\)\s*="
196syn match ncfSetCommandsTime "\(Dirty Disk Cache Delay Time\)\s*="
197syn match ncfSetCommandsTime "\(File Delete Wait Time\)\s*="
198syn match ncfSetCommandsTime "\(Minimum File Delete Wait Time\)\s*="
199syn match ncfSetCommandsTime "\(Mirrored Devices Are Out of Sync Message Frequency\)\s*="
200syn match ncfSetCommandsTime "\(New Packet Receive Buffer Wait Time\)\s*="
201syn match ncfSetCommandsTime "\(TTS Backout File Truncation Wait Time\)\s*="
202syn match ncfSetCommandsTime "\(TTS UnWritten Cache Wait Time\)\s*="
203syn match ncfSetCommandsTime "\(Turbo FAT Re-Use Wait Time\)\s*="
204syn match ncfSetCommandsTime "\(Daylight Savings Time Offset\)\s*="
205
206syn match ncfSetCommandsTimeDate "\(End of Daylight Savings Time\)\s*="
207syn match ncfSetCommandsTimeDate "\(Start of Daylight Savings Time\)\s*="
208
209syn match ncfSetCommandsBindCon "\(Bindery Context\)\s*=" nextgroup=ncfContString
210
211syn cluster ncfSetCommands contains=ncfSetCommandsNum,ncfSetCommandsBool,ncfSetCommandsStr,ncfSetCommandsTime,ncfSetCommandsTimeDate,ncfSetCommandsBindCon
212
213
214if exists("ncf_highlight_unknowns")
215 syn match Error "[^ \t]*" contains=ALL
216endif
217
Bram Moolenaar071d4272004-06-13 20:20:40 +0000218
Bram Moolenaar89bcfda2016-08-30 23:26:57 +0200219" The default methods for highlighting. Can be overridden later
Bram Moolenaarf37506f2016-08-31 22:22:10 +0200220hi def link ncfCommands Statement
221hi def link ncfSetCommands ncfCommands
222hi def link ncfLogins ncfCommands
223hi def link ncfString String
224hi def link ncfContString ncfString
225hi def link ncfComment Comment
226hi def link ncfImplicit Type
227hi def link ncfBoolean Boolean
228hi def link ncfScript Identifier
229hi def link ncfNumber Number
230hi def link ncfIPAddr ncfNumber
231hi def link ncfHexNumber ncfNumber
232hi def link ncfTime ncfNumber
233hi def link ncfDSTTime ncfNumber
234hi def link ncfPath Constant
235hi def link ncfServerName Special
236hi def link ncfIPXNet ncfServerName
237hi def link ncfTimeTypes Constant
238hi def link ncfSetCommandsNum ncfSetCommands
239hi def link ncfSetCommandsBool ncfSetCommands
240hi def link ncfSetCommandsStr ncfSetCommands
241hi def link ncfSetCommandsTime ncfSetCommands
242hi def link ncfSetCommandsTimeDate ncfSetCommands
243hi def link ncfSetCommandsBindCon ncfSetCommands
Bram Moolenaar071d4272004-06-13 20:20:40 +0000244
Bram Moolenaar071d4272004-06-13 20:20:40 +0000245
Bram Moolenaar071d4272004-06-13 20:20:40 +0000246
247let b:current_syntax = "ncf"