mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7
Excluding:
  Amiga icons (*.info, icons/)
  doc/hangulin.txt
  tutor/
  spell/
  lang/ (only used for menu translations)
  macros/maze/, macros/hanoi/, macros/life/, macros/urm/
      These were used to test vi compatibility.
  termcap
      "Demonstration of a termcap file (for the Amiga and Archimedes)"
Helped-by: Rich Wareham <rjw57@cam.ac.uk>
Helped-by: John <john.schmidt.h@gmail.com>
Helped-by: Yann <yann@yann-salaun.com>
Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com>
Helped-by: drasill <github@tof2k.com>
Helped-by: Tae Sandoval Murgan <taecilla@gmail.com>
Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			VimL
		
	
	
	
	
	
" Vim syntax file
 | 
						|
" Language:	Windows Scripting Host
 | 
						|
" Maintainer:	Paul Moore <pf_moore AT yahoo.co.uk>
 | 
						|
" Last Change:	Fre, 24 Nov 2000 21:54:09 +0100
 | 
						|
 | 
						|
" This reuses the XML, VB and JavaScript syntax files. While VB is not
 | 
						|
" VBScript, it's close enough for us. No attempt is made to handle
 | 
						|
" other languages.
 | 
						|
" Send comments, suggestions and requests to the maintainer.
 | 
						|
 | 
						|
" Quit when a syntax file was already loaded
 | 
						|
if exists("b:current_syntax")
 | 
						|
  finish
 | 
						|
endif
 | 
						|
 | 
						|
let s:wsh_cpo_save = &cpo
 | 
						|
set cpo&vim
 | 
						|
 | 
						|
runtime! syntax/xml.vim
 | 
						|
unlet b:current_syntax
 | 
						|
 | 
						|
syn case ignore
 | 
						|
syn include @wshVBScript <sfile>:p:h/vb.vim
 | 
						|
unlet b:current_syntax
 | 
						|
syn include @wshJavaScript <sfile>:p:h/javascript.vim
 | 
						|
unlet b:current_syntax
 | 
						|
syn region wshVBScript
 | 
						|
    \ matchgroup=xmlTag    start="<script[^>]*VBScript\(>\|[^>]*[^/>]>\)"
 | 
						|
    \ matchgroup=xmlEndTag end="</script>"
 | 
						|
    \ fold
 | 
						|
    \ contains=@wshVBScript
 | 
						|
    \ keepend
 | 
						|
syn region wshJavaScript
 | 
						|
    \ matchgroup=xmlTag    start="<script[^>]*J\(ava\)\=Script\(>\|[^>]*[^/>]>\)"
 | 
						|
    \ matchgroup=xmlEndTag end="</script>"
 | 
						|
    \ fold
 | 
						|
    \ contains=@wshJavaScript
 | 
						|
    \ keepend
 | 
						|
 | 
						|
syn cluster xmlRegionHook add=wshVBScript,wshJavaScript
 | 
						|
 | 
						|
let b:current_syntax = "wsh"
 | 
						|
 | 
						|
let &cpo = s:wsh_cpo_save
 | 
						|
unlet s:wsh_cpo_save
 |