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