PageRenderTime 71ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/runtime/syntax/winbatch.vim

https://github.com/kewinwang/macvim
Vim Script | 187 lines | 159 code | 13 blank | 15 comment | 9 complexity | f1e821294f2e8f595775fb42903cf4a2 MD5 | raw file
  1. " Vim syntax file
  2. " Language: WinBatch/Webbatch (*.wbt, *.web)
  3. " Maintainer: dominique@mggen.com
  4. " URL: http://www.mggen.com/vim/syntax/winbatch.zip
  5. " Last change: 2001 May 10
  6. " For version 5.x: Clear all syntax items
  7. " For version 6.x: Quit when a syntax file was already loaded
  8. if version < 600
  9. syntax clear
  10. elseif exists("b:current_syntax")
  11. finish
  12. endif
  13. syn case ignore
  14. syn keyword winbatchCtl if then else endif break end return exit next
  15. syn keyword winbatchCtl while for gosub goto switch select to case
  16. syn keyword winbatchCtl endselect endwhile endselect endswitch
  17. " String
  18. syn region winbatchVar start=+%+ end=+%+
  19. " %var% in strings
  20. syn region winbatchString start=+"+ end=+"+ contains=winbatchVar
  21. syn match winbatchComment ";.*$"
  22. syn match winbatchLabel "^\ *:[0-9a-zA-Z_\-]\+\>"
  23. " constant (bezgin by @)
  24. syn match winbatchConstant "@[0_9a-zA-Z_\-]\+"
  25. " number
  26. syn match winbatchNumber "\<[0-9]\+\(u\=l\=\|lu\|f\)\>"
  27. syn keyword winbatchImplicit aboveicons acc_attrib acc_chng_nt acc_control acc_create
  28. syn keyword winbatchImplicit acc_delete acc_full_95 acc_full_nt acc_list acc_pfull_nt
  29. syn keyword winbatchImplicit acc_pmang_nt acc_print_nt acc_read acc_read_95 acc_read_nt
  30. syn keyword winbatchImplicit acc_write amc arrange ascending attr_a attr_a attr_ci attr_ci
  31. syn keyword winbatchImplicit attr_dc attr_dc attr_di attr_di attr_dm attr_dm attr_h attr_h
  32. syn keyword winbatchImplicit attr_ic attr_ic attr_p attr_p attr_ri attr_ri attr_ro attr_ro
  33. syn keyword winbatchImplicit attr_sh attr_sh attr_sy attr_sy attr_t attr_t attr_x attr_x
  34. syn keyword winbatchImplicit avogadro backscan boltzmann cancel capslock check columns
  35. syn keyword winbatchImplicit commonformat cr crlf ctrl default default deg2rad descending
  36. syn keyword winbatchImplicit disable drive electric enable eulers false faraday float8
  37. syn keyword winbatchImplicit fwdscan gftsec globalgroup gmtsec goldenratio gravitation hidden
  38. syn keyword winbatchImplicit icon lbutton lclick ldblclick lf lightmps lightmtps localgroup
  39. syn keyword winbatchImplicit magfield major mbokcancel mbutton mbyesno mclick mdblclick minor
  40. syn keyword winbatchImplicit msformat multiple ncsaformat no none none noresize normal
  41. syn keyword winbatchImplicit notify nowait numlock off on open parsec parseonly pi
  42. syn keyword winbatchImplicit planckergs planckjoules printer rad2deg rbutton rclick rdblclick
  43. syn keyword winbatchImplicit regclasses regcurrent regmachine regroot regusers rows save
  44. syn keyword winbatchImplicit scrolllock server shift single sorted stack string tab tile
  45. syn keyword winbatchImplicit true uncheck unsorted wait wholesection word1 word2 word4 yes
  46. syn keyword winbatchImplicit zoomed about abs acos addextender appexist appwaitclose asin
  47. syn keyword winbatchImplicit askfilename askfiletext askitemlist askline askpassword askyesno
  48. syn keyword winbatchImplicit atan average beep binaryalloc binarycopy binaryeodget binaryeodset
  49. syn keyword winbatchImplicit binaryfree binaryhashrec binaryincr binaryincr2 binaryincr4
  50. syn keyword winbatchImplicit binaryincrflt binaryindex binaryindexnc binaryoletype binarypeek
  51. syn keyword winbatchImplicit binarypeek2 binarypeek4 binarypeekflt binarypeekstr binarypoke
  52. syn keyword winbatchImplicit binarypoke2 binarypoke4 binarypokeflt binarypokestr binaryread
  53. syn keyword winbatchImplicit binarysort binarystrcnt binarywrite boxbuttondraw boxbuttonkill
  54. syn keyword winbatchImplicit boxbuttonstat boxbuttonwait boxcaption boxcolor
  55. syn keyword winbatchImplicit boxdataclear boxdatatag
  56. syn keyword winbatchImplicit boxdestroy boxdrawcircle boxdrawline boxdrawrect boxdrawtext
  57. syn keyword winbatchImplicit boxesup boxmapmode boxnew boxopen boxpen boxshut boxtext boxtextcolor
  58. syn keyword winbatchImplicit boxtextfont boxtitle boxupdates break buttonnames by call
  59. syn keyword winbatchImplicit callext ceiling char2num clipappend clipget clipput
  60. syn keyword winbatchImplicit continue cos cosh datetime
  61. syn keyword winbatchImplicit ddeexecute ddeinitiate ddepoke dderequest ddeterminate
  62. syn keyword winbatchImplicit ddetimeout debug debugdata decimals delay dialog
  63. syn keyword winbatchImplicit dialogbox dirattrget dirattrset dirchange direxist
  64. syn keyword winbatchImplicit dirget dirhome diritemize dirmake dirremove dirrename
  65. syn keyword winbatchImplicit dirwindows diskexist diskfree diskinfo diskscan disksize
  66. syn keyword winbatchImplicit diskvolinfo display dllcall dllfree dllhinst dllhwnd dllload
  67. syn keyword winbatchImplicit dosboxcursorx dosboxcursory dosboxgetall dosboxgetdata
  68. syn keyword winbatchImplicit dosboxheight dosboxscrmode dosboxversion dosboxwidth dosversion
  69. syn keyword winbatchImplicit drop edosgetinfo edosgetvar edoslistvars edospathadd edospathchk
  70. syn keyword winbatchImplicit edospathdel edossetvar
  71. syn keyword winbatchImplicit endsession envgetinfo envgetvar environment
  72. syn keyword winbatchImplicit environset envitemize envlistvars envpathadd envpathchk
  73. syn keyword winbatchImplicit envpathdel envsetvar errormode exclusive execute exetypeinfo
  74. syn keyword winbatchImplicit exp fabs fileappend fileattrget fileattrset fileclose
  75. syn keyword winbatchImplicit filecompare filecopy filedelete fileexist fileextension filefullname
  76. syn keyword winbatchImplicit fileitemize filelocate filemapname filemove filenameeval1
  77. syn keyword winbatchImplicit filenameeval2 filenamelong filenameshort fileopen filepath
  78. syn keyword winbatchImplicit fileread filerename fileroot filesize filetimecode filetimeget
  79. syn keyword winbatchImplicit filetimeset filetimetouch fileverinfo filewrite fileymdhms
  80. syn keyword winbatchImplicit findwindow floor getexacttime gettickcount
  81. syn keyword winbatchImplicit iconarrange iconreplace ignoreinput inidelete inideletepvt
  82. syn keyword winbatchImplicit iniitemize iniitemizepvt iniread inireadpvt iniwrite iniwritepvt
  83. syn keyword winbatchImplicit installfile int intcontrol isdefined isfloat isint iskeydown
  84. syn keyword winbatchImplicit islicensed isnumber itemcount itemextract iteminsert itemlocate
  85. syn keyword winbatchImplicit itemremove itemselect itemsort keytoggleget keytoggleset
  86. syn keyword winbatchImplicit lasterror log10 logdisk loge max message min mod mouseclick
  87. syn keyword winbatchImplicit mouseclickbtn mousedrag mouseinfo mousemove msgtextget n3attach
  88. syn keyword winbatchImplicit n3captureend n3captureprt n3chgpassword n3detach n3dirattrget
  89. syn keyword winbatchImplicit n3dirattrset n3drivepath n3drivepath2 n3drivestatus n3fileattrget
  90. syn keyword winbatchImplicit n3fileattrset n3getloginid n3getmapped n3getnetaddr n3getuser
  91. syn keyword winbatchImplicit n3getuserid n3logout n3map n3mapdelete n3mapdir n3maproot n3memberdel
  92. syn keyword winbatchImplicit n3memberget n3memberset n3msgsend n3msgsendall n3serverinfo
  93. syn keyword winbatchImplicit n3serverlist n3setsrchdrv n3usergroups n3version n4attach
  94. syn keyword winbatchImplicit n4captureend n4captureprt n4chgpassword n4detach n4dirattrget
  95. syn keyword winbatchImplicit n4dirattrset n4drivepath n4drivestatus n4fileattrget n4fileattrset
  96. syn keyword winbatchImplicit n4getloginid n4getmapped n4getnetaddr n4getuser n4getuserid
  97. syn keyword winbatchImplicit n4login n4logout n4map n4mapdelete n4mapdir n4maproot n4memberdel
  98. syn keyword winbatchImplicit n4memberget n4memberset n4msgsend n4msgsendall n4serverinfo
  99. syn keyword winbatchImplicit n4serverlist n4setsrchdrv n4usergroups n4version netadddrive
  100. syn keyword winbatchImplicit netaddprinter netcancelcon netdirdialog netgetcon netgetuser
  101. syn keyword winbatchImplicit netinfo netresources netversion num2char objectclose
  102. syn keyword winbatchImplicit objectopen parsedata pause playmedia playmidi playwaveform
  103. syn keyword winbatchImplicit print random regapp regclosekey regconnect regcreatekey
  104. syn keyword winbatchImplicit regdeletekey regdelvalue regentrytype regloadhive regopenkey
  105. syn keyword winbatchImplicit regquerybin regquerydword regqueryex regqueryexpsz regqueryitem
  106. syn keyword winbatchImplicit regquerykey regquerymulsz regqueryvalue regsetbin
  107. syn keyword winbatchImplicit regsetdword regsetex regsetexpsz regsetmulsz regsetvalue
  108. syn keyword winbatchImplicit regunloadhive reload reload rtstatus run runenviron
  109. syn keyword winbatchImplicit runexit runhide runhidewait runicon runiconwait runshell runwait
  110. syn keyword winbatchImplicit runzoom runzoomwait sendkey sendkeyschild sendkeysto
  111. syn keyword winbatchImplicit sendmenusto shellexecute shortcutedit shortcutextra shortcutinfo
  112. syn keyword winbatchImplicit shortcutmake sin sinh snapshot sounds sqrt
  113. syn keyword winbatchImplicit srchfree srchinit srchnext strcat strcharcount strcmp
  114. syn keyword winbatchImplicit strfill strfix strfixchars stricmp strindex strlen
  115. syn keyword winbatchImplicit strlower strreplace strscan strsub strtrim strupper
  116. syn keyword winbatchImplicit tan tanh tcpaddr2host tcpftpchdir tcpftpclose tcpftpget
  117. syn keyword winbatchImplicit tcpftplist tcpftpmode tcpftpopen tcpftpput tcphost2addr tcphttpget
  118. syn keyword winbatchImplicit tcphttppost tcpparmget tcpparmset tcpping tcpsmtp terminate
  119. syn keyword winbatchImplicit textbox textboxsort textoutbufdel textoutbuffer textoutdebug
  120. syn keyword winbatchImplicit textoutfree textoutinfo textoutreset textouttrack textouttrackb
  121. syn keyword winbatchImplicit textouttrackp textoutwait textselect timeadd timedate
  122. syn keyword winbatchImplicit timedelay timediffdays timediffsecs timejulianday timejultoymd
  123. syn keyword winbatchImplicit timesubtract timewait timeymdhms version versiondll
  124. syn keyword winbatchImplicit w3addcon w3cancelcon w3dirbrowse w3getcaps w3getcon w3netdialog
  125. syn keyword winbatchImplicit w3netgetuser w3prtbrowse w3version w95accessadd w95accessdel
  126. syn keyword winbatchImplicit w95adddrive w95addprinter w95cancelcon w95dirdialog w95getcon
  127. syn keyword winbatchImplicit w95getuser w95resources w95shareadd w95sharedel w95shareset
  128. syn keyword winbatchImplicit w95version waitforkey wallpaper webbaseconv webcloselog
  129. syn keyword winbatchImplicit webcmddata webcondata webcounter webdatdata webdumperror webhashcode
  130. syn keyword winbatchImplicit webislocal weblogline webopenlog webout weboutfile webparamdata
  131. syn keyword winbatchImplicit webparamnames websettimeout webverifycard winactivate
  132. syn keyword winbatchImplicit winactivchild winarrange winclose winclosenot winconfig winexename
  133. syn keyword winbatchImplicit winexist winparset winparget winexistchild wingetactive
  134. syn keyword winbatchImplicit winhelp winhide winiconize winidget winisdos winitemchild
  135. syn keyword winbatchImplicit winitemize winitemnameid winmetrics winname winparmget
  136. syn keyword winbatchImplicit winparmset winplace winplaceget winplaceset
  137. syn keyword winbatchImplicit winposition winresources winshow winstate winsysinfo
  138. syn keyword winbatchImplicit wintitle winversion winwaitchild winwaitclose winwaitexist
  139. syn keyword winbatchImplicit winzoom wnaddcon wncancelcon wncmptrinfo wndialog
  140. syn keyword winbatchImplicit wndlgbrowse wndlgcon wndlgcon2 wndlgcon3
  141. syn keyword winbatchImplicit wndlgcon4 wndlgdiscon wndlgnoshare wndlgshare wngetcaps
  142. syn keyword winbatchImplicit wngetcon wngetuser wnnetnames wnrestore wnservers wnsharecnt
  143. syn keyword winbatchImplicit wnsharename wnsharepath wnshares wntaccessadd wntaccessdel
  144. syn keyword winbatchImplicit wntaccessget wntadddrive wntaddprinter wntcancelcon wntdirdialog
  145. syn keyword winbatchImplicit wntgetcon wntgetuser wntlistgroups wntmemberdel wntmemberget
  146. syn keyword winbatchImplicit wntmembergrps wntmemberlist wntmemberset wntresources wntshareadd
  147. syn keyword winbatchImplicit wntsharedel wntshareset wntversion wnversion wnwrkgroups wwenvunload
  148. syn keyword winbatchImplicit xbaseconvert xcursorset xdisklabelget xdriveready xextenderinfo
  149. syn keyword winbatchImplicit xgetchildhwnd xgetelapsed xhex xmemcompact xmessagebox
  150. syn keyword winbatchImplicit xsendmessage xverifyccard yield
  151. " Define the default highlighting.
  152. " For version 5.7 and earlier: only when not done already
  153. " For version 5.8 and later: only when an item doesn't have highlighting yet
  154. if version >= 508 || !exists("did_winbatch_syntax_inits")
  155. if version < 508
  156. let did_winbatch_syntax_inits = 1
  157. command -nargs=+ HiLink hi link <args>
  158. else
  159. command -nargs=+ HiLink hi def link <args>
  160. endif
  161. HiLink winbatchLabel PreProc
  162. HiLink winbatchCtl Operator
  163. HiLink winbatchStatement Statement
  164. HiLink winbatchTodo Todo
  165. HiLink winbatchString String
  166. HiLink winbatchVar Type
  167. HiLink winbatchComment Comment
  168. HiLink winbatchImplicit Special
  169. HiLink winbatchNumber Number
  170. HiLink winbatchConstant StorageClass
  171. delcommand HiLink
  172. endif
  173. let b:current_syntax = "winbatch"
  174. " vim: ts=8