2 " Language: Windows Scripting Host
3 " Maintainer: Paul Moore <gustav@morpheus.demon.co.uk>
4 " Last Change: 16 Oct 2000
6 " This reuses the XML, VB and JavaScript syntax files. While VB is not
7 " VBScript, it's close enough for us. No attempt is made to handle
9 " Send comments, suggestions and requests to the maintainer.
11 " For version 5.x: Clear all syntax items
12 " For version 6.x: Quit when a syntax file was already loaded
15 elseif exists("b:current_syntax")
20 source <sfile>:p:h/xml.vim
22 runtime! syntax/xml.vim
24 unlet b:current_syntax
29 syn include @wshVBScript <sfile>:p:h/vb.vim
30 syn include @wshJavaScript <sfile>:p:h/javascript.vim
32 syn include @wshVBScript syntax/vb.vim
33 unlet b:current_syntax
34 syn include @wshJavaScript syntax/javascript.vim
37 syn region wshVBScript matchgroup=xmlTag start="<script[^>]*VBScript\(>\|[^>]*[^/>]>\)" end="</script>" contains=@wshVBScript
38 syn region wshJavaScript matchgroup=xmlTag start="<script[^>]*J\(ava\)\=Script\(>\|[^>]*[^/>]>\)" end="</script>" contains=@wshJavaScript
40 let b:current_syntax = "wsh"