mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	Merge pull request #4118 from nicdumz/vim-83d1b19
[RFC] vim-patch: 3 runtime commits
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
				
			|||||||
" Maintainer:	Dávid Szabó ( complex857 AT gmail DOT com )
 | 
					" Maintainer:	Dávid Szabó ( complex857 AT gmail DOT com )
 | 
				
			||||||
" Previous Maintainer:	Mikolaj Machowski ( mikmach AT wp DOT pl )
 | 
					" Previous Maintainer:	Mikolaj Machowski ( mikmach AT wp DOT pl )
 | 
				
			||||||
" URL: https://github.com/shawncplus/phpcomplete.vim
 | 
					" URL: https://github.com/shawncplus/phpcomplete.vim
 | 
				
			||||||
" Last Change:  2015 Feb 28
 | 
					" Last Change:  2015 Apr 02
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
"	OPTIONS:
 | 
					"	OPTIONS:
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
@@ -141,71 +141,80 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
 | 
				
			|||||||
		if a:base != ""
 | 
							if a:base != ""
 | 
				
			||||||
			let context = substitute(context, '\s*[$a-zA-Z_0-9\x7f-\xff]*$', '', '')
 | 
								let context = substitute(context, '\s*[$a-zA-Z_0-9\x7f-\xff]*$', '', '')
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
							let context = ''
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(getline(0, line('.')))
 | 
						try
 | 
				
			||||||
 | 
							let winheight = winheight(0)
 | 
				
			||||||
 | 
							let winnr = winnr()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if context =~? '^use\s' || context ==? 'use'
 | 
							let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(getline(0, line('.')))
 | 
				
			||||||
		return phpcomplete#CompleteUse(a:base)
 | 
					 | 
				
			||||||
	endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if context =~ '\(->\|::\)$'
 | 
							if context =~? '^use\s' || context ==? 'use'
 | 
				
			||||||
		" {{{
 | 
								return phpcomplete#CompleteUse(a:base)
 | 
				
			||||||
		" Get name of the class
 | 
							endif
 | 
				
			||||||
		let classname = phpcomplete#GetClassName(line('.'), context, current_namespace, imports)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		" Get location of class definition, we have to iterate through all
 | 
							if context =~ '\(->\|::\)$'
 | 
				
			||||||
		if classname != ''
 | 
								" {{{
 | 
				
			||||||
			if classname =~ '\'
 | 
								" Get name of the class
 | 
				
			||||||
				" split the last \ segment as a classname, everything else is the namespace
 | 
								let classname = phpcomplete#GetClassName(line('.'), context, current_namespace, imports)
 | 
				
			||||||
				let classname_parts = split(classname, '\')
 | 
					
 | 
				
			||||||
				let namespace = join(classname_parts[0:-2], '\')
 | 
								" Get location of class definition, we have to iterate through all
 | 
				
			||||||
				let classname = classname_parts[-1]
 | 
								if classname != ''
 | 
				
			||||||
 | 
									if classname =~ '\'
 | 
				
			||||||
 | 
										" split the last \ segment as a classname, everything else is the namespace
 | 
				
			||||||
 | 
										let classname_parts = split(classname, '\')
 | 
				
			||||||
 | 
										let namespace = join(classname_parts[0:-2], '\')
 | 
				
			||||||
 | 
										let classname = classname_parts[-1]
 | 
				
			||||||
 | 
									else
 | 
				
			||||||
 | 
										let namespace = '\'
 | 
				
			||||||
 | 
									endif
 | 
				
			||||||
 | 
									let classlocation = phpcomplete#GetClassLocation(classname, namespace)
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				let namespace = '\'
 | 
									let classlocation = ''
 | 
				
			||||||
			endif
 | 
								endif
 | 
				
			||||||
			let classlocation = phpcomplete#GetClassLocation(classname, namespace)
 | 
					
 | 
				
			||||||
 | 
								if classlocation != ''
 | 
				
			||||||
 | 
									if classlocation == 'VIMPHP_BUILTINOBJECT' && has_key(g:php_builtin_classes, tolower(classname))
 | 
				
			||||||
 | 
										return phpcomplete#CompleteBuiltInClass(context, classname, a:base)
 | 
				
			||||||
 | 
									endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									if filereadable(classlocation)
 | 
				
			||||||
 | 
										let classfile = readfile(classlocation)
 | 
				
			||||||
 | 
										let classcontent = ''
 | 
				
			||||||
 | 
										let classcontent .= "\n".phpcomplete#GetClassContents(classlocation, classname)
 | 
				
			||||||
 | 
										let sccontent = split(classcontent, "\n")
 | 
				
			||||||
 | 
										let visibility = expand('%:p') == fnamemodify(classlocation, ':p') ? 'private' : 'public'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										return phpcomplete#CompleteUserClass(context, a:base, sccontent, visibility)
 | 
				
			||||||
 | 
									endif
 | 
				
			||||||
 | 
								endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								return phpcomplete#CompleteUnknownClass(a:base, context)
 | 
				
			||||||
 | 
								" }}}
 | 
				
			||||||
 | 
							elseif context =~? 'implements'
 | 
				
			||||||
 | 
								return phpcomplete#CompleteClassName(a:base, ['i'], current_namespace, imports)
 | 
				
			||||||
 | 
							elseif context =~? 'extends\s\+.\+$' && a:base == ''
 | 
				
			||||||
 | 
								return ['implements']
 | 
				
			||||||
 | 
							elseif context =~? 'extends'
 | 
				
			||||||
 | 
								let kinds = context =~? 'class\s' ? ['c'] : ['i']
 | 
				
			||||||
 | 
								return phpcomplete#CompleteClassName(a:base, kinds, current_namespace, imports)
 | 
				
			||||||
 | 
							elseif context =~? 'class [a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
 | 
				
			||||||
 | 
								" special case when you've typed the class keyword and the name too, only extends and implements allowed there
 | 
				
			||||||
 | 
								return filter(['extends', 'implements'], 'stridx(v:val, a:base) == 0')
 | 
				
			||||||
 | 
							elseif context =~? 'new'
 | 
				
			||||||
 | 
								return phpcomplete#CompleteClassName(a:base, ['c'], current_namespace, imports)
 | 
				
			||||||
 | 
							endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if a:base =~ '^\$'
 | 
				
			||||||
 | 
								return phpcomplete#CompleteVariable(a:base)
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			let classlocation = ''
 | 
								return phpcomplete#CompleteGeneral(a:base, current_namespace, imports)
 | 
				
			||||||
		endif
 | 
							endif
 | 
				
			||||||
 | 
						finally
 | 
				
			||||||
		if classlocation != ''
 | 
							silent! exec winnr.'resize '.winheight
 | 
				
			||||||
			if classlocation == 'VIMPHP_BUILTINOBJECT' && has_key(g:php_builtin_classes, tolower(classname))
 | 
						endtry
 | 
				
			||||||
				return phpcomplete#CompleteBuiltInClass(context, classname, a:base)
 | 
					 | 
				
			||||||
			endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			if filereadable(classlocation)
 | 
					 | 
				
			||||||
				let classfile = readfile(classlocation)
 | 
					 | 
				
			||||||
				let classcontent = ''
 | 
					 | 
				
			||||||
				let classcontent .= "\n".phpcomplete#GetClassContents(classlocation, classname)
 | 
					 | 
				
			||||||
				let sccontent = split(classcontent, "\n")
 | 
					 | 
				
			||||||
				let visibility = expand('%:p') == fnamemodify(classlocation, ':p') ? 'private' : 'public'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
				return phpcomplete#CompleteUserClass(context, a:base, sccontent, visibility)
 | 
					 | 
				
			||||||
			endif
 | 
					 | 
				
			||||||
		endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		return phpcomplete#CompleteUnknownClass(a:base, context)
 | 
					 | 
				
			||||||
		" }}}
 | 
					 | 
				
			||||||
	elseif context =~? 'implements'
 | 
					 | 
				
			||||||
		return phpcomplete#CompleteClassName(a:base, ['i'], current_namespace, imports)
 | 
					 | 
				
			||||||
	elseif context =~? 'extends\s\+.\+$' && a:base == ''
 | 
					 | 
				
			||||||
		return ['implements']
 | 
					 | 
				
			||||||
	elseif context =~? 'extends'
 | 
					 | 
				
			||||||
		let kinds = context =~? 'class\s' ? ['c'] : ['i']
 | 
					 | 
				
			||||||
		return phpcomplete#CompleteClassName(a:base, kinds, current_namespace, imports)
 | 
					 | 
				
			||||||
	elseif context =~? 'class [a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
 | 
					 | 
				
			||||||
		" special case when you've typed the class keyword and the name too, only extends and implements allowed there
 | 
					 | 
				
			||||||
		return filter(['extends', 'implements'], 'stridx(v:val, a:base) == 0')
 | 
					 | 
				
			||||||
	elseif context =~? 'new'
 | 
					 | 
				
			||||||
		return phpcomplete#CompleteClassName(a:base, ['c'], current_namespace, imports)
 | 
					 | 
				
			||||||
	endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if a:base =~ '^\$'
 | 
					 | 
				
			||||||
		return phpcomplete#CompleteVariable(a:base)
 | 
					 | 
				
			||||||
	else
 | 
					 | 
				
			||||||
		return phpcomplete#CompleteGeneral(a:base, current_namespace, imports)
 | 
					 | 
				
			||||||
	endif
 | 
					 | 
				
			||||||
endfunction
 | 
					endfunction
 | 
				
			||||||
" }}}
 | 
					" }}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1523,21 +1532,19 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
 | 
				
			|||||||
				return ''
 | 
									return ''
 | 
				
			||||||
			endif
 | 
								endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if line =~? '\v^\s*(abstract\s+|final\s+)*\s*class'
 | 
								if line =~? '\v^\s*(abstract\s+|final\s+)*\s*class\s'
 | 
				
			||||||
				let class_name = matchstr(line, '\c\s*class\s*\zs'.class_name_pattern.'\ze')
 | 
									let class_name = matchstr(line, '\cclass\s\+\zs'.class_name_pattern.'\ze')
 | 
				
			||||||
				let extended_class = matchstr(line, '\cclass\s\+'.class_name_pattern.'\s\+extends\s\+\zs'.class_name_pattern.'\ze')
 | 
									let extended_class = matchstr(line, '\cclass\s\+'.class_name_pattern.'\s\+extends\s\+\zs'.class_name_pattern.'\ze')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				let classname_candidate = a:context =~? 'parent::' ? extended_class : class_name
 | 
									let classname_candidate = a:context =~? 'parent::' ? extended_class : class_name
 | 
				
			||||||
			else
 | 
									if classname_candidate != ''
 | 
				
			||||||
				let i += 1
 | 
										let [classname_candidate, class_candidate_namespace] = phpcomplete#GetCallChainReturnType(classname_candidate, class_candidate_namespace, class_candidate_imports, methodstack)
 | 
				
			||||||
				continue
 | 
										" return absolute classname, without leading \
 | 
				
			||||||
 | 
										return (class_candidate_namespace == '\' || class_candidate_namespace == '') ? classname_candidate : class_candidate_namespace.'\'.classname_candidate
 | 
				
			||||||
 | 
									endif
 | 
				
			||||||
			endif
 | 
								endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if classname_candidate != ''
 | 
								let i += 1
 | 
				
			||||||
				let [classname_candidate, class_candidate_namespace] = phpcomplete#GetCallChainReturnType(classname_candidate, class_candidate_namespace, class_candidate_imports, methodstack)
 | 
					 | 
				
			||||||
				" return absolute classname, without leading \
 | 
					 | 
				
			||||||
				return (class_candidate_namespace == '\' || class_candidate_namespace == '') ? classname_candidate : class_candidate_namespace.'\'.classname_candidate
 | 
					 | 
				
			||||||
			endif
 | 
					 | 
				
			||||||
		endwhile
 | 
							endwhile
 | 
				
			||||||
	elseif a:context =~? '(\s*new\s\+'.class_name_pattern.'\s*)->'
 | 
						elseif a:context =~? '(\s*new\s\+'.class_name_pattern.'\s*)->'
 | 
				
			||||||
		let classname_candidate = matchstr(a:context, '\cnew\s\+\zs'.class_name_pattern.'\ze')
 | 
							let classname_candidate = matchstr(a:context, '\cnew\s\+\zs'.class_name_pattern.'\ze')
 | 
				
			||||||
@@ -2031,7 +2038,7 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
 | 
				
			|||||||
	" remember the window we started at
 | 
						" remember the window we started at
 | 
				
			||||||
	let phpcomplete_original_window = winnr()
 | 
						let phpcomplete_original_window = winnr()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	silent! tab 1new
 | 
						silent! below 1new
 | 
				
			||||||
	silent! 0put =cfile
 | 
						silent! 0put =cfile
 | 
				
			||||||
	call search('\c\(class\|interface\|trait\)\_s\+'.a:class_name.'\(\>\|$\)')
 | 
						call search('\c\(class\|interface\|trait\)\_s\+'.a:class_name.'\(\>\|$\)')
 | 
				
			||||||
	let cfline = line('.')
 | 
						let cfline = line('.')
 | 
				
			||||||
@@ -2370,7 +2377,7 @@ endfunction!
 | 
				
			|||||||
function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
 | 
					function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
 | 
				
			||||||
	let original_window = winnr()
 | 
						let original_window = winnr()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	silent! tab 1new
 | 
						silent! below 1new
 | 
				
			||||||
	silent! 0put =a:file_lines
 | 
						silent! 0put =a:file_lines
 | 
				
			||||||
	normal! G
 | 
						normal! G
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
*help.txt*	For Vim version 7.4.  Last change: 2015 Apr 11
 | 
					*help.txt*	For Vim version 7.4.  Last change: 2015 Apr 15
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			VIM - main help file
 | 
								VIM - main help file
 | 
				
			||||||
									 k
 | 
														 k
 | 
				
			||||||
@@ -171,16 +171,6 @@ Standard plugins ~
 | 
				
			|||||||
|pi_zip.txt|       Zip archive explorer
 | 
					|pi_zip.txt|       Zip archive explorer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LOCAL ADDITIONS:				*local-additions*
 | 
					LOCAL ADDITIONS:				*local-additions*
 | 
				
			||||||
|Mines.txt|	The Mines Game 				Jul 30, 2009
 | 
					 | 
				
			||||||
|Tabular.txt|   Configurable, flexible, intuitive text aligning
 | 
					 | 
				
			||||||
|cecutil.txt|	DrChip's Utilities				Jun 11, 2004
 | 
					 | 
				
			||||||
|example.txt|	Example for a locally added help file
 | 
					 | 
				
			||||||
|matchit.txt|   Extended "%" matching
 | 
					 | 
				
			||||||
|pi_netrw.txt|  For Vim version 7.4.  Last change: 2014 Jul 09
 | 
					 | 
				
			||||||
|synchk.txt|	Syntax Checker    			May 15, 2013
 | 
					 | 
				
			||||||
|test.txt|	Testing the hélp cömmånd nôw
 | 
					 | 
				
			||||||
|typecorr.txt|	Plugin for correcting typing mistakes
 | 
					 | 
				
			||||||
|helpp.txt|	Dummy line to avoid an error message
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
------------------------------------------------------------------------------
 | 
					------------------------------------------------------------------------------
 | 
				
			||||||
*bars*		Bars example
 | 
					*bars*		Bars example
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
*repeat.txt*    For Vim version 7.4.  Last change: 2015 Jan 07
 | 
					*repeat.txt*    For Vim version 7.4.  Last change: 2015 Apr 13
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		  VIM REFERENCE MANUAL    by Bram Moolenaar
 | 
							  VIM REFERENCE MANUAL    by Bram Moolenaar
 | 
				
			||||||
@@ -583,6 +583,7 @@ For example, to profile the one_script.vim script file: >
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
:prof[ile] start {fname}			*:prof* *:profile* *E750*
 | 
					:prof[ile] start {fname}			*:prof* *:profile* *E750*
 | 
				
			||||||
		Start profiling, write the output in {fname} upon exit.
 | 
							Start profiling, write the output in {fname} upon exit.
 | 
				
			||||||
 | 
							"~/" and environment variables in {fname} will be expanded.
 | 
				
			||||||
		If {fname} already exists it will be silently overwritten.
 | 
							If {fname} already exists it will be silently overwritten.
 | 
				
			||||||
		The variable |v:profiling| is set to one.
 | 
							The variable |v:profiling| is set to one.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
" Vim syntax file
 | 
					" Vim syntax file
 | 
				
			||||||
" Language:	C-shell (csh)
 | 
					" Language:	C-shell (csh)
 | 
				
			||||||
" Maintainer:	Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
 | 
					" Maintainer:	Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
 | 
				
			||||||
" Version:	11
 | 
					 | 
				
			||||||
" Last Change:	Oct 23, 2014
 | 
					" Last Change:	Oct 23, 2014
 | 
				
			||||||
 | 
					" Version:	11
 | 
				
			||||||
" URL:	http://www.drchip.org/astronaut/vim/index.html#SYNTAX_CSH
 | 
					" URL:	http://www.drchip.org/astronaut/vim/index.html#SYNTAX_CSH
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" For version 5.x: Clear all syntax items
 | 
					" For version 5.x: Clear all syntax items
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@
 | 
				
			|||||||
" Maintainer:	Tobias Rapp <yahuxo@gmx.de>
 | 
					" Maintainer:	Tobias Rapp <yahuxo@gmx.de>
 | 
				
			||||||
" Version: 	0.1.13
 | 
					" Version: 	0.1.13
 | 
				
			||||||
" URL:	  http://www.vim.org/scripts/script.php?script_id=945
 | 
					" URL:	  http://www.vim.org/scripts/script.php?script_id=945
 | 
				
			||||||
" Last Change:	2013 Apr 24
 | 
					" Last Change:	2015 Apr 13
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" THE ORIGINAL AUTHOR'S NOTES:
 | 
					" THE ORIGINAL AUTHOR'S NOTES:
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
@@ -220,7 +220,6 @@ syn region  groovyComment          start="/\*"  end="\*/" contains=@groovyCommen
 | 
				
			|||||||
syn match   groovyCommentStar      contained "^\s*\*[^/]"me=e-1
 | 
					syn match   groovyCommentStar      contained "^\s*\*[^/]"me=e-1
 | 
				
			||||||
syn match   groovyCommentStar      contained "^\s*\*$"
 | 
					syn match   groovyCommentStar      contained "^\s*\*$"
 | 
				
			||||||
syn match   groovyLineComment      "//.*" contains=@groovyCommentSpecial2,groovyTodo,@Spell
 | 
					syn match   groovyLineComment      "//.*" contains=@groovyCommentSpecial2,groovyTodo,@Spell
 | 
				
			||||||
syn match   groovyLineComment      "#.*" contains=@groovyCommentSpecial2,groovyTodo,@Spell
 | 
					 | 
				
			||||||
GroovyHiLink groovyCommentString groovyString
 | 
					GroovyHiLink groovyCommentString groovyString
 | 
				
			||||||
GroovyHiLink groovyComment2String groovyString
 | 
					GroovyHiLink groovyComment2String groovyString
 | 
				
			||||||
GroovyHiLink groovyCommentCharacter groovyCharacter
 | 
					GroovyHiLink groovyCommentCharacter groovyCharacter
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
" Vim syntax file
 | 
					" Vim syntax file
 | 
				
			||||||
" Language: php PHP 3/4/5
 | 
					" Language: php PHP 3/4/5
 | 
				
			||||||
" Maintainer: Jason Woofenden <jason@jasonwoof.com>
 | 
					" Maintainer: Jason Woofenden <jason@jasonwoof.com>
 | 
				
			||||||
" Last Change: Sep 18, 2014
 | 
					" Last Change: Mar 24, 2015
 | 
				
			||||||
" URL: https://gitorious.org/jasonwoof/vim-syntax/blobs/master/php.vim
 | 
					" URL: https://jasonwoof.com/gitweb/?p=vim-syntax.git;a=blob;f=php.vim;hb=HEAD
 | 
				
			||||||
" Former Maintainers: Peter Hodge <toomuchphp-vim@yahoo.com>
 | 
					" Former Maintainers: Peter Hodge <toomuchphp-vim@yahoo.com>
 | 
				
			||||||
"         Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
 | 
					"         Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,8 +2,8 @@
 | 
				
			|||||||
" Language:		shell (sh) Korn shell (ksh) bash (sh)
 | 
					" Language:		shell (sh) Korn shell (ksh) bash (sh)
 | 
				
			||||||
" Maintainer:		Charles E. Campbell  <NdrOchipS@PcampbellAfamily.Mbiz>
 | 
					" Maintainer:		Charles E. Campbell  <NdrOchipS@PcampbellAfamily.Mbiz>
 | 
				
			||||||
" Previous Maintainer:	Lennart Schultz <Lennart.Schultz@ecmwf.int>
 | 
					" Previous Maintainer:	Lennart Schultz <Lennart.Schultz@ecmwf.int>
 | 
				
			||||||
" Last Change:		Jan 08, 2015
 | 
					" Last Change:		Apr 10, 2015
 | 
				
			||||||
" Version:		134
 | 
					" Version:		136
 | 
				
			||||||
" URL:		http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
 | 
					" URL:		http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
 | 
				
			||||||
" For options and settings, please use:      :help ft-sh-syntax
 | 
					" For options and settings, please use:      :help ft-sh-syntax
 | 
				
			||||||
" This file includes many ideas from ?ric Brunet (eric.brunet@ens.fr)
 | 
					" This file includes many ideas from ?ric Brunet (eric.brunet@ens.fr)
 | 
				
			||||||
@@ -104,7 +104,7 @@ syn cluster shErrorList	contains=shDoError,shIfError,shInError,shCaseError,shEsa
 | 
				
			|||||||
if exists("b:is_kornshell")
 | 
					if exists("b:is_kornshell")
 | 
				
			||||||
 syn cluster ErrorList add=shDTestError
 | 
					 syn cluster ErrorList add=shDTestError
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
syn cluster shArithParenList	contains=shArithmetic,shCaseEsac,shComment,shDeref,shDerefSimple,shDo,shEcho,shEscape,shIf,shFor,shNumber,shOperator,shPosnParm,shExSingleQuote,shExDoubleQuote,shRedir,shSingleQuote,shDoubleQuote,shStatement,shVariable,shAlias,shTest,shCtrlSeq,shSpecial,shParen,bashSpecialVariables,bashStatement
 | 
					syn cluster shArithParenList	contains=shArithmetic,shCaseEsac,shComment,shDeref,shDo,shDerefSimple,shEcho,shEscape,shNumber,shOperator,shPosnParm,shExSingleQuote,shExDoubleQuote,shRedir,shSingleQuote,shDoubleQuote,shStatement,shVariable,shAlias,shTest,shCtrlSeq,shSpecial,shParen,bashSpecialVariables,bashStatement,shIf,shFor
 | 
				
			||||||
syn cluster shArithList	contains=@shArithParenList,shParenError
 | 
					syn cluster shArithList	contains=@shArithParenList,shParenError
 | 
				
			||||||
syn cluster shCaseEsacList	contains=shCaseStart,shCase,shCaseBar,shCaseIn,shComment,shDeref,shDerefSimple,shCaseCommandSub,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote,shCtrlSeq,@shErrorList,shStringSpecial,shCaseRange
 | 
					syn cluster shCaseEsacList	contains=shCaseStart,shCase,shCaseBar,shCaseIn,shComment,shDeref,shDerefSimple,shCaseCommandSub,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote,shCtrlSeq,@shErrorList,shStringSpecial,shCaseRange
 | 
				
			||||||
syn cluster shCaseList	contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq
 | 
					syn cluster shCaseList	contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq
 | 
				
			||||||
@@ -127,9 +127,9 @@ syn cluster shHereList	contains=shBeginHere,shHerePayload
 | 
				
			|||||||
syn cluster shHereListDQ	contains=shBeginHere,@shDblQuoteList,shHerePayload
 | 
					syn cluster shHereListDQ	contains=shBeginHere,@shDblQuoteList,shHerePayload
 | 
				
			||||||
syn cluster shIdList	contains=shCommandSub,shWrapLineOperator,shSetOption,shDeref,shDerefSimple,shRedir,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shExpr,shCtrlSeq,shStringSpecial,shAtExpr
 | 
					syn cluster shIdList	contains=shCommandSub,shWrapLineOperator,shSetOption,shDeref,shDerefSimple,shRedir,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shExpr,shCtrlSeq,shStringSpecial,shAtExpr
 | 
				
			||||||
syn cluster shIfList	contains=@shLoopList,shDblBrace,shDblParen,shFunctionKey,shFunctionOne,shFunctionTwo
 | 
					syn cluster shIfList	contains=@shLoopList,shDblBrace,shDblParen,shFunctionKey,shFunctionOne,shFunctionTwo
 | 
				
			||||||
syn cluster shLoopList	contains=@shCaseList,shIf,shFor,shForPP,shTestOpr,shExpr,shDblBrace,shConditional,shCaseEsac,shTest,@shErrorList,shSet,shOption
 | 
					syn cluster shLoopList	contains=@shCaseList,@shErrorList,shCaseEsac,shConditional,shDblBrace,shExpr,shFor,shForPP,shIf,shOption,shSet,shTest,shTestOpr
 | 
				
			||||||
syn cluster shSubShList	contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq,shOperator
 | 
					syn cluster shSubShList	contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq,shOperator
 | 
				
			||||||
syn cluster shTestList	contains=shCharClass,shComment,shCommandSub,shDeref,shDerefSimple,shExDoubleQuote,shDoubleQuote,shExpr,shNumber,shOperator,shExSingleQuote,shSingleQuote,shTestOpr,shTest,shCtrlSeq
 | 
					syn cluster shTestList	contains=shCharClass,shCommandSub,shComment,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shExDoubleQuote,shExpr,shExSingleQuote,shNumber,shOperator,shSingleQuote,shTest,shTestOpr
 | 
				
			||||||
" Echo: {{{1
 | 
					" Echo: {{{1
 | 
				
			||||||
" ====
 | 
					" ====
 | 
				
			||||||
" This one is needed INSIDE a CommandSub, so that `echo bla` be correct
 | 
					" This one is needed INSIDE a CommandSub, so that `echo bla` be correct
 | 
				
			||||||
@@ -197,13 +197,12 @@ syn region shTest	transparent matchgroup=shStatement start="\<test\s" skip=+\\\\
 | 
				
			|||||||
syn match  shTestOpr	contained	"<=\|>=\|!=\|==\|-.\>\|-\(nt\|ot\|ef\|eq\|ne\|lt\|le\|gt\|ge\)\>\|[!<>]"
 | 
					syn match  shTestOpr	contained	"<=\|>=\|!=\|==\|-.\>\|-\(nt\|ot\|ef\|eq\|ne\|lt\|le\|gt\|ge\)\>\|[!<>]"
 | 
				
			||||||
syn match  shTestOpr	contained	'=' skipwhite nextgroup=shTestDoubleQuote,shTestSingleQuote,shTestPattern
 | 
					syn match  shTestOpr	contained	'=' skipwhite nextgroup=shTestDoubleQuote,shTestSingleQuote,shTestPattern
 | 
				
			||||||
syn match  shTestPattern	contained	'\w\+'
 | 
					syn match  shTestPattern	contained	'\w\+'
 | 
				
			||||||
syn region shTestDoubleQuote	contained	start='"' skip='\\"' end='"' contains=shBQpairs
 | 
					syn region shTestDoubleQuote	contained	start='\%(\%(\\\\\)*\\\)\@<!"' skip=+\\\\\|\\"+ end='"'
 | 
				
			||||||
syn match  shTestSingleQuote	contained	'\\.'
 | 
					syn match  shTestSingleQuote	contained	'\\.'
 | 
				
			||||||
syn match  shTestSingleQuote	contained	"'[^']*'"
 | 
					syn match  shTestSingleQuote	contained	"'[^']*'"
 | 
				
			||||||
syn match  shBQpairs	contained	'\\\\'
 | 
					 | 
				
			||||||
if exists("b:is_kornshell") || exists("b:is_bash")
 | 
					if exists("b:is_kornshell") || exists("b:is_bash")
 | 
				
			||||||
 syn region  shDblBrace matchgroup=Delimiter start="\[\[" skip=+\\\\\|\\$+ end="\]\]"	contains=@shTestList
 | 
					 syn region  shDblBrace matchgroup=Delimiter start="\[\[" skip=+\\\\\|\\$+ end="\]\]"	contains=@shTestList,shComment
 | 
				
			||||||
 syn region  shDblParen matchgroup=Delimiter start="((" skip=+\\\\\|\\$+ end="))"	contains=@shTestList
 | 
					 syn region  shDblParen matchgroup=Delimiter start="((" skip=+\\\\\|\\$+ end="))"	contains=@shTestList,shComment
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" Character Class In Range: {{{1
 | 
					" Character Class In Range: {{{1
 | 
				
			||||||
@@ -213,15 +212,16 @@ syn match   shCharClass	contained	"\[:\(backspace\|escape\|return\|xdigit\|alnum
 | 
				
			|||||||
" Loops: do, if, while, until {{{1
 | 
					" Loops: do, if, while, until {{{1
 | 
				
			||||||
" ======
 | 
					" ======
 | 
				
			||||||
if s:sh_fold_ifdofor
 | 
					if s:sh_fold_ifdofor
 | 
				
			||||||
 syn region shDo	fold transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>" contains=@shLoopList
 | 
					 syn region shDo	fold transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>"			contains=@shLoopList
 | 
				
			||||||
 syn region shIf	fold transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>"   contains=@shIfList
 | 
					 syn region shIf	fold transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>"	contains=@shIfList
 | 
				
			||||||
 syn region shFor	fold matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\_s" end="\<do\>"me=e-2	contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
 | 
					 syn region shFor	fold matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\_s" end="\<do\>"me=e-2				contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
 | 
				
			||||||
 | 
					 syn region shForPP	fold matchgroup=shLoop start='\<for\>\_s*((' end='))' contains=shTestOpr
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 syn region shDo	transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>"	contains=@shLoopList
 | 
					 syn region shDo	transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>"			contains=@shLoopList
 | 
				
			||||||
 syn region shIf	transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>"   contains=@shIfList
 | 
					 syn region shIf	transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>"	contains=@shIfList
 | 
				
			||||||
 syn region shFor	matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\>" end="\<do\>"me=e-2	contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
 | 
					 syn region shFor	matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\>" end="\<do\>"me=e-2			contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
 | 
				
			||||||
 | 
					 syn region shForPP	matchgroup=shLoop start='\<for\>\_s*((' end='))' contains=shTestOpr
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
syn region shForPP	matchgroup=shLoop start='\<for\>\_s*((' end='))' contains=shTestOpr
 | 
					 | 
				
			||||||
if exists("b:is_kornshell") || exists("b:is_bash")
 | 
					if exists("b:is_kornshell") || exists("b:is_bash")
 | 
				
			||||||
 syn cluster shCaseList	add=shRepeat
 | 
					 syn cluster shCaseList	add=shRepeat
 | 
				
			||||||
 syn cluster shFunctionList	add=shRepeat
 | 
					 syn cluster shFunctionList	add=shRepeat
 | 
				
			||||||
@@ -409,19 +409,27 @@ endif
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if exists("b:is_bash")
 | 
					if exists("b:is_bash")
 | 
				
			||||||
 if s:sh_fold_functions
 | 
					 if s:sh_fold_functions
 | 
				
			||||||
  syn region shFunctionOne fold	matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{"	end="}"	contains=@shFunctionList			skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
 | 
					  syn region shFunctionOne	fold	matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{"	end="}"	contains=@shFunctionList			skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
 | 
				
			||||||
  syn region shFunctionTwo fold	matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{"	end="}"	contains=shFunctionKey,@shFunctionList contained	skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
 | 
					  syn region shFunctionTwo	fold	matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{"	end="}"	contains=shFunctionKey,@shFunctionList contained	skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
 | 
				
			||||||
 | 
					  syn region shFunctionThree	fold	matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*("	end=")"	contains=@shFunctionList			skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
 | 
				
			||||||
 | 
					  syn region shFunctionFour	fold	matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*)"	end=")"	contains=shFunctionKey,@shFunctionList contained	skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
 | 
				
			||||||
 else
 | 
					 else
 | 
				
			||||||
  syn region shFunctionOne	matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{"	end="}"	contains=@shFunctionList
 | 
					  syn region shFunctionOne		matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{"	end="}"	contains=@shFunctionList
 | 
				
			||||||
  syn region shFunctionTwo	matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{"	end="}"	contains=shFunctionKey,@shFunctionList contained
 | 
					  syn region shFunctionTwo		matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{"	end="}"	contains=shFunctionKey,@shFunctionList contained
 | 
				
			||||||
 | 
					  syn region shFunctionThree		matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*("	end=")"	contains=@shFunctionList
 | 
				
			||||||
 | 
					  syn region shFunctionFour		matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*("	end=")"	contains=shFunctionKey,@shFunctionList contained
 | 
				
			||||||
 endif
 | 
					 endif
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 if s:sh_fold_functions
 | 
					 if s:sh_fold_functions
 | 
				
			||||||
  syn region shFunctionOne fold	matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{" end="}"	contains=@shFunctionList			skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
 | 
					  syn region shFunctionOne	fold	matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{"	end="}"	contains=@shFunctionList	       skipwhite skipnl		nextgroup=shFunctionStart,shQuickComment
 | 
				
			||||||
  syn region shFunctionTwo fold	matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{"	end="}"	contains=shFunctionKey,@shFunctionList contained	skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
 | 
					  syn region shFunctionTwo	fold	matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{"	end="}"	contains=shFunctionKey,@shFunctionList contained skipwhite skipnl	nextgroup=shFunctionStart,shQuickComment
 | 
				
			||||||
 | 
					  syn region shFunctionThree	fold	matchgroup=shFunction start="^\s*\h\w*\s*()\_s*("	end=")"	contains=@shFunctionList	       skipwhite skipnl		nextgroup=shFunctionStart,shQuickComment
 | 
				
			||||||
 | 
					  syn region shFunctionFour	fold	matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*("	end=")"	contains=shFunctionKey,@shFunctionList contained skipwhite skipnl	nextgroup=shFunctionStart,shQuickComment
 | 
				
			||||||
 else
 | 
					 else
 | 
				
			||||||
  syn region shFunctionOne	matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{"	end="}"	contains=@shFunctionList
 | 
					  syn region shFunctionOne		matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{"	end="}"	contains=@shFunctionList
 | 
				
			||||||
  syn region shFunctionTwo	matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{"	end="}"	contains=shFunctionKey,@shFunctionList contained
 | 
					  syn region shFunctionTwo		matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{"	end="}"	contains=shFunctionKey,@shFunctionList contained
 | 
				
			||||||
 | 
					  syn region shFunctionThree		matchgroup=shFunction start="^\s*\h\w*\s*()\_s*("	end=")"	contains=@shFunctionList
 | 
				
			||||||
 | 
					  syn region shFunctionFour		matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*("	end=")"	contains=shFunctionKey,@shFunctionList contained
 | 
				
			||||||
 endif
 | 
					 endif
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -577,7 +585,7 @@ hi def link shDoubleQuote	shString
 | 
				
			|||||||
hi def link shEcho	shString
 | 
					hi def link shEcho	shString
 | 
				
			||||||
hi def link shEchoDelim	shOperator
 | 
					hi def link shEchoDelim	shOperator
 | 
				
			||||||
hi def link shEchoQuote	shString
 | 
					hi def link shEchoQuote	shString
 | 
				
			||||||
"hi def link shForPP	shLoop
 | 
					hi def link shForPP	shLoop
 | 
				
			||||||
hi def link shEmbeddedEcho	shString
 | 
					hi def link shEmbeddedEcho	shString
 | 
				
			||||||
hi def link shEscape	shCommandSub
 | 
					hi def link shEscape	shCommandSub
 | 
				
			||||||
hi def link shExDoubleQuote	shDoubleQuote
 | 
					hi def link shExDoubleQuote	shDoubleQuote
 | 
				
			||||||
@@ -604,7 +612,6 @@ hi def link shTestOpr	shConditional
 | 
				
			|||||||
hi def link shTestPattern	shString
 | 
					hi def link shTestPattern	shString
 | 
				
			||||||
hi def link shTestDoubleQuote	shString
 | 
					hi def link shTestDoubleQuote	shString
 | 
				
			||||||
hi def link shTestSingleQuote	shString
 | 
					hi def link shTestSingleQuote	shString
 | 
				
			||||||
hi def link shBQpairs	shString
 | 
					 | 
				
			||||||
hi def link shVariable	shSetList
 | 
					hi def link shVariable	shSetList
 | 
				
			||||||
hi def link shWrapLineOperator	shOperator
 | 
					hi def link shWrapLineOperator	shOperator
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
" Vim syntax file
 | 
					" Vim syntax file
 | 
				
			||||||
" Language:	sendmail
 | 
					" Language:	sendmail
 | 
				
			||||||
" Maintainer:	Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
 | 
					" Maintainer:	Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
 | 
				
			||||||
" Last Change:	Jan 13, 2015
 | 
					" Last Change:	Oct 23, 2014
 | 
				
			||||||
" Version:	6
 | 
					" Version:	7
 | 
				
			||||||
" URL:	http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SM
 | 
					" URL:	http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SM
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if exists("b:current_syntax")
 | 
					if exists("b:current_syntax")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
" Vim syntax file
 | 
					" Vim syntax file
 | 
				
			||||||
" Language:	TeX
 | 
					" Language:	TeX
 | 
				
			||||||
" Maintainer:	Charles E. Campbell <NdrchipO@ScampbellPfamily.AbizM>
 | 
					" Maintainer:	Charles E. Campbell <NdrchipO@ScampbellPfamily.AbizM>
 | 
				
			||||||
" Last Change:	Nov 18, 2014
 | 
					" Last Change:	Apr 02, 2015
 | 
				
			||||||
" Version:	83
 | 
					" Version:	84
 | 
				
			||||||
" URL:		http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
 | 
					" URL:		http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
" Notes: {{{1
 | 
					" Notes: {{{1
 | 
				
			||||||
@@ -391,10 +391,17 @@ endif
 | 
				
			|||||||
" particular support for bold and italic {{{1
 | 
					" particular support for bold and italic {{{1
 | 
				
			||||||
if s:tex_fast =~ 'b'
 | 
					if s:tex_fast =~ 'b'
 | 
				
			||||||
  if s:tex_conceal =~ 'b'
 | 
					  if s:tex_conceal =~ 'b'
 | 
				
			||||||
   syn region texBoldStyle	matchgroup=texTypeStyle start="\\textbf\s*{" end="}" concealends contains=@texBoldGroup
 | 
					   if !exists("g:tex_nospell") || !g:tex_nospell
 | 
				
			||||||
   syn region texBoldItalStyle	matchgroup=texTypeStyle start="\\textit\s*{" end="}" concealends contains=@texItalGroup
 | 
					    syn region texBoldStyle	matchgroup=texTypeStyle start="\\textbf\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texBoldGroup,@Spell
 | 
				
			||||||
   syn region texItalStyle	matchgroup=texTypeStyle start="\\textit\s*{" end="}" concealends contains=@texItalGroup
 | 
					    syn region texBoldItalStyle	matchgroup=texTypeStyle start="\\textit\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texItalGroup,@Spell
 | 
				
			||||||
   syn region texItalBoldStyle	matchgroup=texTypeStyle start="\\textbf\s*{" end="}" concealends contains=@texBoldGroup
 | 
					    syn region texItalStyle	matchgroup=texTypeStyle start="\\textit\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texItalGroup,@Spell
 | 
				
			||||||
 | 
					    syn region texItalBoldStyle	matchgroup=texTypeStyle start="\\textbf\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texBoldGroup,@Spell
 | 
				
			||||||
 | 
					   else
 | 
				
			||||||
 | 
					    syn region texBoldStyle	matchgroup=texTypeStyle start="\\textbf\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texBoldGroup
 | 
				
			||||||
 | 
					    syn region texBoldItalStyle	matchgroup=texTypeStyle start="\\textit\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texItalGroup
 | 
				
			||||||
 | 
					    syn region texItalStyle	matchgroup=texTypeStyle start="\\textit\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texItalGroup
 | 
				
			||||||
 | 
					    syn region texItalBoldStyle	matchgroup=texTypeStyle start="\\textbf\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texBoldGroup
 | 
				
			||||||
 | 
					   endif
 | 
				
			||||||
  endif
 | 
					  endif
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -576,14 +583,14 @@ else
 | 
				
			|||||||
   syn match  texComment	"%.*$"			contains=@texCommentGroup
 | 
					   syn match  texComment	"%.*$"			contains=@texCommentGroup
 | 
				
			||||||
   if s:tex_fast =~ 'c'
 | 
					   if s:tex_fast =~ 'c'
 | 
				
			||||||
    syn region texComment	start="^\zs\s*%.*\_s*%"	skip="^\s*%"	end='^\ze\s*[^%]' fold
 | 
					    syn region texComment	start="^\zs\s*%.*\_s*%"	skip="^\s*%"	end='^\ze\s*[^%]' fold
 | 
				
			||||||
    syn region texNoSpell	contained	matchgroup=texComment start="%\s*nospell\s*{"		end="%\s*nospell\s*}"	fold contains=@texFoldGroup,@NoSpell
 | 
					    syn region texNoSpell	contained		matchgroup=texComment start="%\s*nospell\s*{"		end="%\s*nospell\s*}"	fold contains=@texFoldGroup,@NoSpell
 | 
				
			||||||
    syn region texSpellZone		 	matchgroup=texComment start="%\s*spellzone_start"	end="%\s*spellzone_end"	fold contains=@Spell,@texFoldGroup
 | 
					    syn region texSpellZone		 		matchgroup=texComment start="%\s*spellzone_start"	end="%\s*spellzone_end"	fold contains=@Spell,@texFoldGroup
 | 
				
			||||||
   endif
 | 
					   endif
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
   syn match texComment		"%.*$"		contains=@texCommentGroup
 | 
					   syn match texComment		"%.*$"			contains=@texCommentGroup
 | 
				
			||||||
   if s:tex_fast =~ 'c'
 | 
					   if s:tex_fast =~ 'c'
 | 
				
			||||||
    syn region texNoSpell	contained	matchgroup=texComment start="%\s*nospell\s*{"		end="%\s*nospell\s*}"	contains=@texFoldGroup,@NoSpell
 | 
					    syn region texNoSpell	contained		matchgroup=texComment start="%\s*nospell\s*{"		end="%\s*nospell\s*}"	contains=@texFoldGroup,@NoSpell
 | 
				
			||||||
    syn region  texSpellZone		 	matchgroup=texComment start="%\s*spellzone_start"	end="%\s*spellzone_end"	contains=@Spell,@texFoldGroup
 | 
					    syn region  texSpellZone		 		matchgroup=texComment start="%\s*spellzone_start"	end="%\s*spellzone_end"	contains=@Spell,@texFoldGroup
 | 
				
			||||||
   endif
 | 
					   endif
 | 
				
			||||||
  endif
 | 
					  endif
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
" Vim syntax file
 | 
					" Vim syntax file
 | 
				
			||||||
" Language:	Yacc
 | 
					" Language:	Yacc
 | 
				
			||||||
" Maintainer:	Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
 | 
					" Maintainer:	Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
 | 
				
			||||||
" Last Change:	Jan 14, 2015
 | 
					" Last Change:	Apr 02, 2015
 | 
				
			||||||
" Version:	12
 | 
					" Version:	13
 | 
				
			||||||
" URL:	http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
 | 
					" URL:	http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
" Options: {{{1
 | 
					" Options: {{{1
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user