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