mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	| @@ -1184,10 +1184,11 @@ name! | |||||||
| 				different from existing {event} names, as this | 				different from existing {event} names, as this | ||||||
| 				most likely will not do what you intended. | 				most likely will not do what you intended. | ||||||
|  |  | ||||||
| 						*:augroup-delete* *E367* | 						*:augroup-delete* *E367* *W19* | ||||||
| :aug[roup]! {name}		Delete the autocmd group {name}.  Don't use | :aug[roup]! {name}		Delete the autocmd group {name}.  Don't use | ||||||
| 				this if there is still an autocommand using | 				this if there is still an autocommand using | ||||||
| 				this group!  This is not checked. | 				this group!  You will get a warning if doing | ||||||
|  | 				it anyway. | ||||||
|  |  | ||||||
| To enter autocommands for a specific group, use this method: | To enter autocommands for a specific group, use this method: | ||||||
| 1. Select the group with ":augroup {name}". | 1. Select the group with ":augroup {name}". | ||||||
|   | |||||||
| @@ -247,7 +247,7 @@ it.  To change a list in-place see |list-modification| below. | |||||||
|  |  | ||||||
|  |  | ||||||
| Sublist ~ | Sublist ~ | ||||||
|  | 							*sublist* | ||||||
| A part of the List can be obtained by specifying the first and last index, | A part of the List can be obtained by specifying the first and last index, | ||||||
| separated by a colon in square brackets: > | separated by a colon in square brackets: > | ||||||
| 	:let shortlist = mylist[2:-1]	" get List [3, "four"] | 	:let shortlist = mylist[2:-1]	" get List [3, "four"] | ||||||
| @@ -975,10 +975,10 @@ Examples: > | |||||||
| 	:let s = line(".")[4:]		" from the fifth byte to the end | 	:let s = line(".")[4:]		" from the fifth byte to the end | ||||||
| 	:let s = s[:-3]			" remove last two bytes | 	:let s = s[:-3]			" remove last two bytes | ||||||
| < | < | ||||||
| 							*sublist* *slice* | 							*slice* | ||||||
| If expr8 is a |List| this results in a new |List| with the items indicated by | If expr8 is a |List| this results in a new |List| with the items indicated by | ||||||
| the indexes expr1a and expr1b.	This works like with a String, as explained | the indexes expr1a and expr1b.	This works like with a String, as explained | ||||||
| just above, except that indexes out of range cause an error.  Examples: > | just above. Also see |sublist| below.  Examples: > | ||||||
| 	:let l = mylist[:3]		" first four items | 	:let l = mylist[:3]		" first four items | ||||||
| 	:let l = mylist[4:4]		" List with one item | 	:let l = mylist[4:4]		" List with one item | ||||||
| 	:let l = mylist[:]		" shallow copy of a List | 	:let l = mylist[:]		" shallow copy of a List | ||||||
| @@ -8219,7 +8219,7 @@ See |:verbose-cmd| for more information. | |||||||
| 				:    let x += 1 | 				:    let x += 1 | ||||||
| 				:    return x | 				:    return x | ||||||
| 				:  endfunction | 				:  endfunction | ||||||
| 				:  return function('Bar') | 				:  return funcref('Bar') | ||||||
| 				:endfunction | 				:endfunction | ||||||
|  |  | ||||||
| 				:let F = Foo() | 				:let F = Foo() | ||||||
|   | |||||||
| @@ -1411,9 +1411,11 @@ The valid escape sequences are | |||||||
| 	<mods>  The command modifiers, if specified. Otherwise, expands to | 	<mods>  The command modifiers, if specified. Otherwise, expands to | ||||||
| 		nothing. Supported modifiers are |:aboveleft|, |:belowright|, | 		nothing. Supported modifiers are |:aboveleft|, |:belowright|, | ||||||
| 		|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|, | 		|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|, | ||||||
| 		|:keepjumps|, |:keepmarks|, |:keeppatterns|, |:lockmarks|, | 		|:keepjumps|, |:keepmarks|, |:keeppatterns|, |:leftabove|, | ||||||
| 		|:noswapfile|, |:silent|, |:tab|, |:topleft|, |:verbose|, and | 		|:lockmarks|, |:noswapfile| |:rightbelow|, |:silent|, |:tab|, | ||||||
| 		|:vertical|. | 		|:topleft|, |:verbose|, and |:vertical|. | ||||||
|  | 		Note that these are not yet supported: |:noautocmd|, | ||||||
|  | 		|:sandbox| and |:unsilent|. | ||||||
| 		Examples: > | 		Examples: > | ||||||
| 		    command! -nargs=+ -complete=file MyEdit | 		    command! -nargs=+ -complete=file MyEdit | ||||||
| 				\ for f in expand(<q-args>, 0, 1) | | 				\ for f in expand(<q-args>, 0, 1) | | ||||||
|   | |||||||
| @@ -331,6 +331,7 @@ N  *+gettext*		message translations |multi-lang| | |||||||
| N  *+insert_expand*	|insert_expand| Insert mode completion | N  *+insert_expand*	|insert_expand| Insert mode completion | ||||||
| N  *+jumplist*		|jumplist| | N  *+jumplist*		|jumplist| | ||||||
| B  *+keymap*		|'keymap'| | B  *+keymap*		|'keymap'| | ||||||
|  | N  *+lambda*		|lambda| and |closure| | ||||||
| B  *+langmap*		|'langmap'| | B  *+langmap*		|'langmap'| | ||||||
| N  *+libcall*		|libcall()| | N  *+libcall*		|libcall()| | ||||||
| N  *+linebreak*		|'linebreak'|, |'breakat'| and |'showbreak'| | N  *+linebreak*		|'linebreak'|, |'breakat'| and |'showbreak'| | ||||||
|   | |||||||
| @@ -249,7 +249,7 @@ window will appear. | |||||||
| 		far left and occupies the full height of the Vim window. | 		far left and occupies the full height of the Vim window. | ||||||
| 		Doesn't work for |:execute| and |:normal|. | 		Doesn't work for |:execute| and |:normal|. | ||||||
|  |  | ||||||
| 						*:botright* | 						*:bo* *:botright* | ||||||
| :bo[tright] {cmd} | :bo[tright] {cmd} | ||||||
| 		Execute {cmd}.  If it contains a command that splits a window, | 		Execute {cmd}.  If it contains a command that splits a window, | ||||||
| 		it will appear at the bottom and occupy the full width of the | 		it will appear at the bottom and occupy the full width of the | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| " Vim syntax file | " Vim syntax file | ||||||
| " Language: php PHP 3/4/5 | " Language: php PHP 3/4/5/7 | ||||||
| " Maintainer: Jason Woofenden <jason@jasonwoof.com> | " Maintainer: Jason Woofenden <jason@jasonwoof.com> | ||||||
| " Last Change: Apr 18, 2016 | " Last Change: Jul 27, 2016 | ||||||
| " URL: https://jasonwoof.com/gitweb/?p=vim-syntax.git;a=blob;f=php.vim;hb=HEAD | " 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> | ||||||
| @@ -377,29 +377,29 @@ syn keyword phpTodo todo fixme xxx  contained | |||||||
|  |  | ||||||
| " Comment | " Comment | ||||||
| if exists("php_parent_error_open") | if exists("php_parent_error_open") | ||||||
|   syn region  phpComment  start="/\*" end="\*/" contained contains=phpTodo |   syn region  phpComment  start="/\*" end="\*/" contained contains=phpTodo,@Spell | ||||||
| else | else | ||||||
|   syn region  phpComment  start="/\*" end="\*/" contained contains=phpTodo extend |   syn region  phpComment  start="/\*" end="\*/" contained contains=phpTodo,@Spell extend | ||||||
| endif | endif | ||||||
| if version >= 600 | if version >= 600 | ||||||
|   syn match phpComment  "#.\{-}\(?>\|$\)\@="  contained contains=phpTodo |   syn match phpComment  "#.\{-}\(?>\|$\)\@="  contained contains=phpTodo,@Spell | ||||||
|   syn match phpComment  "//.\{-}\(?>\|$\)\@=" contained contains=phpTodo |   syn match phpComment  "//.\{-}\(?>\|$\)\@=" contained contains=phpTodo,@Spell | ||||||
| else | else | ||||||
|   syn match phpComment  "#.\{-}$" contained contains=phpTodo |   syn match phpComment  "#.\{-}$" contained contains=phpTodo,@Spell | ||||||
|   syn match phpComment  "#.\{-}?>"me=e-2  contained contains=phpTodo |   syn match phpComment  "#.\{-}?>"me=e-2  contained contains=phpTodo,@Spell | ||||||
|   syn match phpComment  "//.\{-}$"  contained contains=phpTodo |   syn match phpComment  "//.\{-}$"  contained contains=phpTodo,@Spell | ||||||
|   syn match phpComment  "//.\{-}?>"me=e-2 contained contains=phpTodo |   syn match phpComment  "//.\{-}?>"me=e-2 contained contains=phpTodo,@Spell | ||||||
| endif | endif | ||||||
|  |  | ||||||
| " String | " String | ||||||
| if exists("php_parent_error_open") | if exists("php_parent_error_open") | ||||||
|   syn region  phpStringDouble matchgroup=phpStringDouble start=+"+ skip=+\\\\\|\\"+ end=+"+  contains=@phpAddStrings,phpBackslashSequences,phpBackslashDoubleQuote,@phpInterpDouble contained keepend |   syn region  phpStringDouble matchgroup=phpStringDouble start=+"+ skip=+\\\\\|\\"+ end=+"+  contains=@phpAddStrings,phpBackslashSequences,phpBackslashDoubleQuote,@phpInterpDouble,@Spell contained keepend | ||||||
|   syn region  phpBacktick matchgroup=phpBacktick start=+`+ skip=+\\\\\|\\"+ end=+`+  contains=@phpAddStrings,phpIdentifier,phpBackslashSequences,phpIdentifierSimply,phpIdentifierComplex contained keepend |   syn region  phpBacktick matchgroup=phpBacktick start=+`+ skip=+\\\\\|\\"+ end=+`+  contains=@phpAddStrings,phpIdentifier,phpBackslashSequences,phpIdentifierSimply,phpIdentifierComplex contained keepend | ||||||
|   syn region  phpStringSingle matchgroup=phpStringSingle start=+'+ skip=+\\\\\|\\'+ end=+'+  contains=@phpAddStrings,phpBackslashSingleQuote contained keepend |   syn region  phpStringSingle matchgroup=phpStringSingle start=+'+ skip=+\\\\\|\\'+ end=+'+  contains=@phpAddStrings,phpBackslashSingleQuote,@Spell contained keepend | ||||||
| else | else | ||||||
|   syn region  phpStringDouble matchgroup=phpStringDouble start=+"+ skip=+\\\\\|\\"+ end=+"+  contains=@phpAddStrings,phpBackslashSequences,phpBackslashDoubleQuote,@phpInterpDouble contained extend keepend |   syn region  phpStringDouble matchgroup=phpStringDouble start=+"+ skip=+\\\\\|\\"+ end=+"+  contains=@phpAddStrings,phpBackslashSequences,phpBackslashDoubleQuote,@phpInterpDouble,@Spell contained extend keepend | ||||||
|   syn region  phpBacktick matchgroup=phpBacktick start=+`+ skip=+\\\\\|\\"+ end=+`+  contains=@phpAddStrings,phpIdentifier,phpBackslashSequences,phpIdentifierSimply,phpIdentifierComplex contained extend keepend |   syn region  phpBacktick matchgroup=phpBacktick start=+`+ skip=+\\\\\|\\"+ end=+`+  contains=@phpAddStrings,phpIdentifier,phpBackslashSequences,phpIdentifierSimply,phpIdentifierComplex contained extend keepend | ||||||
|   syn region  phpStringSingle matchgroup=phpStringSingle start=+'+ skip=+\\\\\|\\'+ end=+'+  contains=@phpAddStrings,phpBackslashSingleQuote contained keepend extend |   syn region  phpStringSingle matchgroup=phpStringSingle start=+'+ skip=+\\\\\|\\'+ end=+'+  contains=@phpAddStrings,phpBackslashSingleQuote,@Spell contained keepend extend | ||||||
| endif | endif | ||||||
|  |  | ||||||
| " HereDoc and NowDoc | " HereDoc and NowDoc | ||||||
| @@ -407,18 +407,18 @@ if version >= 600 | |||||||
|   syn case match |   syn case match | ||||||
|  |  | ||||||
|   " HereDoc |   " HereDoc | ||||||
|   syn region  phpHereDoc  matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\I\i*\)\2$" end="^\z1\(;\=$\)\@=" contained contains=phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar keepend extend |   syn region  phpHereDoc  matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\I\i*\)\2$" end="^\z1\(;\=$\)\@=" contained contains=phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar,@Spell keepend extend | ||||||
| " including HTML,JavaScript,SQL even if not enabled via options | " including HTML,JavaScript,SQL even if not enabled via options | ||||||
|   syn region  phpHereDoc  matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(html\)\c\(\i*\)\)\2$" end="^\z1\(;\=$\)\@="  contained contains=@htmlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar keepend extend |   syn region  phpHereDoc  matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(html\)\c\(\i*\)\)\2$" end="^\z1\(;\=$\)\@="  contained contains=@htmlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar,@Spell keepend extend | ||||||
|   syn region  phpHereDoc  matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(sql\)\c\(\i*\)\)\2$" end="^\z1\(;\=$\)\@=" contained contains=@sqlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar keepend extend |   syn region  phpHereDoc  matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(sql\)\c\(\i*\)\)\2$" end="^\z1\(;\=$\)\@=" contained contains=@sqlTop,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar,@Spell keepend extend | ||||||
|   syn region  phpHereDoc  matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(javascript\)\c\(\i*\)\)\2$" end="^\z1\(;\=$\)\@="  contained contains=@htmlJavascript,phpIdentifierSimply,phpIdentifier,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar keepend extend |   syn region  phpHereDoc  matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(javascript\)\c\(\i*\)\)\2$" end="^\z1\(;\=$\)\@="  contained contains=@htmlJavascript,phpIdentifierSimply,phpIdentifier,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar,@Spell keepend extend | ||||||
|  |  | ||||||
|   " NowDoc |   " NowDoc | ||||||
|   syn region  phpNowDoc  matchgroup=Delimiter start="\(<<<\)\@<='\z(\I\i*\)'$" end="^\z1\(;\=$\)\@=" contained keepend extend |   syn region  phpNowDoc  matchgroup=Delimiter start="\(<<<\)\@<='\z(\I\i*\)'$" end="^\z1\(;\=$\)\@=" contained contains=@Spell keepend extend | ||||||
| " including HTML,JavaScript,SQL even if not enabled via options | " including HTML,JavaScript,SQL even if not enabled via options | ||||||
|   syn region  phpNowDoc  matchgroup=Delimiter start="\(<<<\)\@<='\z(\(\I\i*\)\=\(html\)\c\(\i*\)\)'$" end="^\z1\(;\=$\)\@="  contained contains=@htmlTop keepend extend |   syn region  phpNowDoc  matchgroup=Delimiter start="\(<<<\)\@<='\z(\(\I\i*\)\=\(html\)\c\(\i*\)\)'$" end="^\z1\(;\=$\)\@="  contained contains=@htmlTop,@Spell keepend extend | ||||||
|   syn region  phpNowDoc  matchgroup=Delimiter start="\(<<<\)\@<='\z(\(\I\i*\)\=\(sql\)\c\(\i*\)\)'$" end="^\z1\(;\=$\)\@=" contained contains=@sqlTop keepend extend |   syn region  phpNowDoc  matchgroup=Delimiter start="\(<<<\)\@<='\z(\(\I\i*\)\=\(sql\)\c\(\i*\)\)'$" end="^\z1\(;\=$\)\@=" contained contains=@sqlTop,@Spell keepend extend | ||||||
|   syn region  phpNowDoc  matchgroup=Delimiter start="\(<<<\)\@<='\z(\(\I\i*\)\=\(javascript\)\c\(\i*\)\)'$" end="^\z1\(;\=$\)\@="  contained contains=@htmlJavascript keepend extend |   syn region  phpNowDoc  matchgroup=Delimiter start="\(<<<\)\@<='\z(\(\I\i*\)\=\(javascript\)\c\(\i*\)\)'$" end="^\z1\(;\=$\)\@="  contained contains=@htmlJavascript,@Spell keepend extend | ||||||
|   syn case ignore |   syn case ignore | ||||||
| endif | endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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:		Jun 10, 2016 | " Last Change:		Jul 29, 2016 | ||||||
| " Version:		152 | " Version:		155 | ||||||
| " 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 Eric Brunet (eric.brunet@ens.fr) | " This file includes many ideas from Eric Brunet (eric.brunet@ens.fr) | ||||||
| @@ -131,11 +131,11 @@ syn cluster shArithParenList	contains=shArithmetic,shCaseEsac,shComment,shDeref, | |||||||
| 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 | ||||||
| syn cluster shCommandSubList	contains=shAlias,shArithmetic,shComment,shCmdParenRegion,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shEcho,shEscape,shExDoubleQuote,shExpr,shExSingleQuote,shNumber,shOperator,shOption,shPosnParm,shSingleQuote,shSpecial,shStatement,shSubSh,shTest,shVariable | syn cluster shCommandSubList	contains=shAlias,shArithmetic,shComment,shCmdParenRegion,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shEcho,shEscape,shExDoubleQuote,shExpr,shExSingleQuote,shHereDoc,shNumber,shOperator,shOption,shPosnParm,shSingleQuote,shSpecial,shStatement,shSubSh,shTest,shVariable | ||||||
| syn cluster shCurlyList	contains=shNumber,shComma,shDeref,shDerefSimple,shDerefSpecial | syn cluster shCurlyList	contains=shNumber,shComma,shDeref,shDerefSimple,shDerefSpecial | ||||||
| syn cluster shDblQuoteList	contains=shCommandSub,shDeref,shDerefSimple,shEscape,shPosnParm,shCtrlSeq,shSpecial | syn cluster shDblQuoteList	contains=shCommandSub,shDeref,shDerefSimple,shEscape,shPosnParm,shCtrlSeq,shSpecial | ||||||
| syn cluster shDerefList	contains=shDeref,shDerefSimple,shDerefVar,shDerefSpecial,shDerefWordError,shDerefPSR,shDerefPPS | syn cluster shDerefList	contains=shDeref,shDerefSimple,shDerefVar,shDerefSpecial,shDerefWordError,shDerefPSR,shDerefPPS | ||||||
| syn cluster shDerefVarList	contains=shDerefOp,shDerefVarArray,shDerefOpError | syn cluster shDerefVarList	contains=shDerefOff,shDerefOp,shDerefVarArray,shDerefOpError | ||||||
| syn cluster shEchoList	contains=shArithmetic,shCommandSub,shDeref,shDerefSimple,shEscape,shExpr,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shCtrlSeq,shEchoQuote | syn cluster shEchoList	contains=shArithmetic,shCommandSub,shDeref,shDerefSimple,shEscape,shExpr,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shCtrlSeq,shEchoQuote | ||||||
| syn cluster shExprList1	contains=shCharClass,shNumber,shOperator,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shExpr,shDblBrace,shDeref,shDerefSimple,shCtrlSeq | syn cluster shExprList1	contains=shCharClass,shNumber,shOperator,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shExpr,shDblBrace,shDeref,shDerefSimple,shCtrlSeq | ||||||
| syn cluster shExprList2	contains=@shExprList1,@shCaseList,shTest | syn cluster shExprList2	contains=@shExprList1,@shCaseList,shTest | ||||||
| @@ -332,7 +332,7 @@ endif | |||||||
| " String And Character Constants: {{{1 | " String And Character Constants: {{{1 | ||||||
| "================================ | "================================ | ||||||
| syn match   shNumber	"\<\d\+\>#\=" | syn match   shNumber	"\<\d\+\>#\=" | ||||||
| syn match   shNumber	"-\=\.\=\d\+\>#\=" | syn match   shNumber	"\<-\=\.\=\d\+\>#\=" | ||||||
| syn match   shCtrlSeq	"\\\d\d\d\|\\[abcfnrtv0]"			contained | syn match   shCtrlSeq	"\\\d\d\d\|\\[abcfnrtv0]"			contained | ||||||
| if exists("b:is_bash") | if exists("b:is_bash") | ||||||
|  syn match   shSpecial	"[^\\]\(\\\\\)*\zs\\\o\o\o\|\\x\x\x\|\\c[^"]\|\\[abefnrtv]"	contained |  syn match   shSpecial	"[^\\]\(\\\\\)*\zs\\\o\o\o\|\\x\x\x\|\\c[^"]\|\\[abefnrtv]"	contained | ||||||
| @@ -366,21 +366,21 @@ syn match	shQuickComment	contained	"#.*$" | |||||||
|  |  | ||||||
| " Here Documents: {{{1 | " Here Documents: {{{1 | ||||||
| " ========================================= | " ========================================= | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc01 start="<<\s*\\\=\z([^ \t|]\+\)"		matchgroup=shHereDoc01 end="^\z1\s*$"	contains=@shDblQuoteList | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc01 start="<<\s*\\\=\z([^ \t|>]\+\)"		matchgroup=shHereDoc01 end="^\z1\s*$"	contains=@shDblQuoteList | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc02 start="<<\s*\"\z([^ \t|]\+\)\""		matchgroup=shHereDoc02 end="^\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc02 start="<<\s*\"\z([^ \t|>]\+\)\""		matchgroup=shHereDoc02 end="^\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc03 start="<<-\s*\z([^ \t|]\+\)"		matchgroup=shHereDoc03 end="^\s*\z1\s*$"	contains=@shDblQuoteList | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc03 start="<<-\s*\z([^ \t|>]\+\)"		matchgroup=shHereDoc03 end="^\s*\z1\s*$"	contains=@shDblQuoteList | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc04 start="<<-\s*'\z([^ \t|]\+\)'"		matchgroup=shHereDoc04 end="^\s*\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc04 start="<<-\s*'\z([^ \t|>]\+\)'"		matchgroup=shHereDoc04 end="^\s*\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc05 start="<<\s*'\z([^ \t|]\+\)'"		matchgroup=shHereDoc05 end="^\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc05 start="<<\s*'\z([^ \t|>]\+\)'"		matchgroup=shHereDoc05 end="^\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc06 start="<<-\s*\"\z([^ \t|]\+\)\""		matchgroup=shHereDoc06 end="^\s*\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc06 start="<<-\s*\"\z([^ \t|>]\+\)\""		matchgroup=shHereDoc06 end="^\s*\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc07 start="<<\s*\\\_$\_s*\z([^ \t|]\+\)"		matchgroup=shHereDoc07 end="^\z1\s*$"           contains=@shDblQuoteList | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc07 start="<<\s*\\\_$\_s*\z([^ \t|>]\+\)"		matchgroup=shHereDoc07 end="^\z1\s*$"           contains=@shDblQuoteList | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc08 start="<<\s*\\\_$\_s*'\z([^ \t|]\+\)'"	matchgroup=shHereDoc08 end="^\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc08 start="<<\s*\\\_$\_s*'\z([^ \t|>]\+\)'"	matchgroup=shHereDoc08 end="^\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc09 start="<<\s*\\\_$\_s*\"\z([^ \t|]\+\)\""	matchgroup=shHereDoc09 end="^\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc09 start="<<\s*\\\_$\_s*\"\z([^ \t|>]\+\)\""	matchgroup=shHereDoc09 end="^\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc10 start="<<-\s*\\\_$\_s*\z([^ \t|]\+\)"		matchgroup=shHereDoc10 end="^\s*\z1\s*$"	 | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc10 start="<<-\s*\\\_$\_s*\z([^ \t|>]\+\)"	matchgroup=shHereDoc10 end="^\s*\z1\s*$"	 | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc11 start="<<-\s*\\\_$\_s*\\\z([^ \t|]\+\)"	matchgroup=shHereDoc11 end="^\s*\z1\s*$"	 | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc11 start="<<-\s*\\\_$\_s*\\\z([^ \t|>]\+\)"	matchgroup=shHereDoc11 end="^\s*\z1\s*$"	 | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc12 start="<<-\s*\\\_$\_s*'\z([^ \t|]\+\)'"	matchgroup=shHereDoc12 end="^\s*\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc12 start="<<-\s*\\\_$\_s*'\z([^ \t|>]\+\)'"	matchgroup=shHereDoc12 end="^\s*\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc13 start="<<-\s*\\\_$\_s*\"\z([^ \t|]\+\)\""	matchgroup=shHereDoc13 end="^\s*\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc13 start="<<-\s*\\\_$\_s*\"\z([^ \t|>]\+\)\""	matchgroup=shHereDoc13 end="^\s*\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc14 start="<<\\\z([^ \t|]\+\)"		matchgroup=shHereDoc14 end="^\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc14 start="<<\\\z([^ \t|>]\+\)"		matchgroup=shHereDoc14 end="^\z1\s*$" | ||||||
| ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc15 start="<<-\s*\\\z([^ \t|]\+\)"		matchgroup=shHereDoc15 end="^\s*\z1\s*$" | ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc15 start="<<-\s*\\\z([^ \t|>]\+\)"		matchgroup=shHereDoc15 end="^\s*\z1\s*$" | ||||||
|  |  | ||||||
| " Here Strings: {{{1 | " Here Strings: {{{1 | ||||||
| " ============= | " ============= | ||||||
| @@ -427,7 +427,7 @@ endif | |||||||
| if !exists("g:sh_no_error") | if !exists("g:sh_no_error") | ||||||
|  syn match  shDerefWordError	"[^}$[~]"	contained |  syn match  shDerefWordError	"[^}$[~]"	contained | ||||||
| endif | endif | ||||||
| syn match  shDerefSimple	"\$\%(\k\+\|\d\)" | syn match  shDerefSimple	"\$\%(\h\w*\|\d\)" | ||||||
| syn region shDeref	matchgroup=PreProc start="\${" end="}"	contains=@shDerefList,shDerefVarArray | syn region shDeref	matchgroup=PreProc start="\${" end="}"	contains=@shDerefList,shDerefVarArray | ||||||
| syn match  shDerefSimple	"\$[-#*@!?]" | syn match  shDerefSimple	"\$[-#*@!?]" | ||||||
| syn match  shDerefSimple	"\$\$" | syn match  shDerefSimple	"\$\$" | ||||||
| @@ -445,18 +445,18 @@ endif | |||||||
| " bash: ${!prefix*} and ${#parameter}: {{{1 | " bash: ${!prefix*} and ${#parameter}: {{{1 | ||||||
| " ==================================== | " ==================================== | ||||||
| if exists("b:is_bash") | if exists("b:is_bash") | ||||||
|  syn region shDeref	matchgroup=PreProc start="\${!" end="\*\=}"	contains=@shDerefList,shDerefOp |  syn region shDeref	matchgroup=PreProc start="\${!" end="\*\=}"	contains=@shDerefList,shDerefOff | ||||||
|  syn match  shDerefVar	contained	"{\@<=!\k\+"		nextgroup=@shDerefVarList |  syn match  shDerefVar	contained	"{\@<=!\h\w*"		nextgroup=@shDerefVarList | ||||||
| endif | endif | ||||||
| if exists("b:is_kornshell") | if exists("b:is_kornshell") | ||||||
|  syn match  shDerefVar	contained	"{\@<=!\k[[:alnum:]_.]*"	nextgroup=@shDerefVarList |  syn match  shDerefVar	contained	"{\@<=!\h\w*[[:alnum:]_.]*"	nextgroup=@shDerefVarList | ||||||
| endif | endif | ||||||
|  |  | ||||||
| syn match  shDerefSpecial	contained	"{\@<=[-*@?0]"		nextgroup=shDerefOp,shDerefOpError | syn match  shDerefSpecial	contained	"{\@<=[-*@?0]"		nextgroup=shDerefOp,shDerefOpError | ||||||
| syn match  shDerefSpecial	contained	"\({[#!]\)\@<=[[:alnum:]*@_]\+"	nextgroup=@shDerefVarList,shDerefOp | syn match  shDerefSpecial	contained	"\({[#!]\)\@<=[[:alnum:]*@_]\+"	nextgroup=@shDerefVarList,shDerefOp | ||||||
| syn match  shDerefVar	contained	"{\@<=\k\+"		nextgroup=@shDerefVarList | syn match  shDerefVar	contained	"{\@<=\h\w*"		nextgroup=@shDerefVarList | ||||||
| if exists("b:is_kornshell") | if exists("b:is_kornshell") | ||||||
|   syn match  shDerefVar	contained	"{\@<=\k[[:alnum:]_.]*"	nextgroup=@shDerefVarList |   syn match  shDerefVar	contained	"{\@<=\h\w*[[:alnum:]_.]*"	nextgroup=@shDerefVarList | ||||||
| endif | endif | ||||||
|  |  | ||||||
| " sh ksh bash : ${var[... ]...}  array reference: {{{1 | " sh ksh bash : ${var[... ]...}  array reference: {{{1 | ||||||
| @@ -498,8 +498,9 @@ syn match  shDerefString	contained	"\\["']"	nextgroup=shDerefPattern | |||||||
| if exists("b:is_bash") | if exists("b:is_bash") | ||||||
|  " bash : ${parameter:offset} |  " bash : ${parameter:offset} | ||||||
|  " bash : ${parameter:offset:length} |  " bash : ${parameter:offset:length} | ||||||
|  syn region shDerefOp	contained	start=":[$[:alnum:]_]"me=e-1 end=":"me=e-1 end="}"me=e-1 contains=@shCommandSubList nextgroup=shDerefPOL |  syn region shDerefOff	contained	start=':'	end='\ze:'	end='\ze}'	contains=shDeref,shDerefSimple	nextgroup=shDerefLen,shDeref,shDerefSimple | ||||||
|  syn match  shDerefPOL	contained	":[^}]\+"	contains=@shCommandSubList |  syn region shDerefOff	contained	start=':\s-'	end='\ze:'	end='\ze}'	contains=shDeref,shDerefSimple	nextgroup=shDerefLen,shDeref,shDerefSimple | ||||||
|  |  syn match  shDerefLen	contained	":[^}]\+"	contains=shDeref,shDerefSimple | ||||||
|  |  | ||||||
|  " bash : ${parameter//pattern/string} |  " bash : ${parameter//pattern/string} | ||||||
|  " bash : ${parameter//pattern} |  " bash : ${parameter//pattern} | ||||||
| @@ -636,6 +637,8 @@ if exists("b:is_bash") | |||||||
|   hi def link bashSpecialVariables	shShellVariables |   hi def link bashSpecialVariables	shShellVariables | ||||||
|   hi def link bashStatement		shStatement |   hi def link bashStatement		shStatement | ||||||
|   hi def link shCharClass		shSpecial |   hi def link shCharClass		shSpecial | ||||||
|  |   hi def link shDerefOff		shDerefOp | ||||||
|  |   hi def link shDerefLen		shDerefOff | ||||||
| endif | endif | ||||||
| if exists("b:is_kornshell") | if exists("b:is_kornshell") | ||||||
|   hi def link kshSpecialVariables	shShellVariables |   hi def link kshSpecialVariables	shShellVariables | ||||||
|   | |||||||
| @@ -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:	Jun 17, 2016 | " Last Change:	Jul 05, 2016 | ||||||
| " Version:	97 | " Version:	98 | ||||||
| " 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 | ||||||
| @@ -132,14 +132,20 @@ endif | |||||||
| " One may override this iskeyword setting by providing | " One may override this iskeyword setting by providing | ||||||
| " g:tex_isk | " g:tex_isk | ||||||
| if exists("g:tex_isk") | if exists("g:tex_isk") | ||||||
|  exe "setlocal isk=".g:tex_isk |  if b:tex_stylish && g:tex_isk !~ '@' | ||||||
| elseif !has("patch-7.4.1142") |   let b:tex_isk= '@,'.g:tex_isk | ||||||
|  setl isk=48-57,a-z,A-Z,192-255 |  else | ||||||
|  |   let b:tex_isk= g:tex_isk | ||||||
|  |  endif | ||||||
|  | elseif b:tex_stylish | ||||||
|  |  let b:tex_isk="@,48-57,a-z,A-Z,192-255" | ||||||
| else | else | ||||||
|  syn iskeyword 48-57,a-z,A-Z,192-255 |  let b:tex_isk="48-57,a-z,A-Z,192-255" | ||||||
| endif | endif | ||||||
| if b:tex_stylish | if v:version > 704 || (v:version == 704 && has("patch-7.4.1142")) | ||||||
|   setlocal isk+=@-@ |  exe "syn iskeyword ".b:tex_isk | ||||||
|  | else | ||||||
|  |  exe "setl isk=".b:tex_isk | ||||||
| endif | endif | ||||||
| if exists("g:tex_no_error") && g:tex_no_error | if exists("g:tex_no_error") && g:tex_no_error | ||||||
|  let s:tex_no_error= 1 |  let s:tex_no_error= 1 | ||||||
| @@ -159,7 +165,7 @@ endif | |||||||
|  |  | ||||||
| " Clusters: {{{1 | " Clusters: {{{1 | ||||||
| " -------- | " -------- | ||||||
| syn cluster texCmdGroup			contains=texCmdBody,texComment,texDefParm,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathOper,texNewCmd,texNewEnv,texRefZone,texSection,texBeginEnd,texBeginEndName,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle | syn cluster texCmdGroup			contains=texCmdBody,texComment,texDefParm,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathOper,texNewCmd,texNewEnv,texRefZone,texSection,texBeginEnd,texBeginEndName,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,@texMathZones | ||||||
| if !s:tex_no_error | if !s:tex_no_error | ||||||
|  syn cluster texCmdGroup		add=texMathError |  syn cluster texCmdGroup		add=texMathError | ||||||
| endif | endif | ||||||
| @@ -447,9 +453,8 @@ if !exists("g:tex_no_math") | |||||||
|  call TexNewMathZone("G","gather",1) |  call TexNewMathZone("G","gather",1) | ||||||
|  call TexNewMathZone("H","math",1) |  call TexNewMathZone("H","math",1) | ||||||
|  call TexNewMathZone("I","multline",1) |  call TexNewMathZone("I","multline",1) | ||||||
|  call TexNewMathZone("J","subequations",0) |  call TexNewMathZone("J","xalignat",1) | ||||||
|  call TexNewMathZone("K","xalignat",1) |  call TexNewMathZone("K","xxalignat",0) | ||||||
|  call TexNewMathZone("L","xxalignat",0) |  | ||||||
|  |  | ||||||
|  " Inline Math Zones: {{{2 |  " Inline Math Zones: {{{2 | ||||||
|  if s:tex_fast =~# 'M' |  if s:tex_fast =~# 'M' | ||||||
| @@ -481,8 +486,9 @@ if !exists("g:tex_no_math") | |||||||
|  " \left..something.. and \right..something.. support: {{{2 |  " \left..something.. and \right..something.. support: {{{2 | ||||||
|  syn match   texMathDelimBad	contained		"\S" |  syn match   texMathDelimBad	contained		"\S" | ||||||
|  if has("conceal") && &enc == 'utf-8' && s:tex_conceal =~# 'm' |  if has("conceal") && &enc == 'utf-8' && s:tex_conceal =~# 'm' | ||||||
|   syn match   texMathDelim	contained		"\\left\\{\>"	skipwhite nextgroup=texMathDelimSet1,texMathDelimSet2,texMathDelimBad contains=texMathSymbol cchar={ |   syn match   texMathDelim	contained		"\\left\[" | ||||||
|   syn match   texMathDelim	contained		"\\right\\}\>"	skipwhite nextgroup=texMathDelimSet1,texMathDelimSet2,texMathDelimBad contains=texMathSymbol cchar=} |   syn match   texMathDelim	contained		"\\left\\{"	skipwhite nextgroup=texMathDelimSet1,texMathDelimSet2,texMathDelimBad contains=texMathSymbol cchar={ | ||||||
|  |   syn match   texMathDelim	contained		"\\right\\}"	skipwhite nextgroup=texMathDelimSet1,texMathDelimSet2,texMathDelimBad contains=texMathSymbol cchar=} | ||||||
|   let s:texMathDelimList=[ |   let s:texMathDelimList=[ | ||||||
|      \ ['<'            , '<'] , |      \ ['<'            , '<'] , | ||||||
|      \ ['>'            , '>'] , |      \ ['>'            , '>'] , | ||||||
|   | |||||||
| @@ -238,7 +238,7 @@ if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror") | |||||||
| endif | endif | ||||||
| syn case ignore | syn case ignore | ||||||
| syn keyword	vimUserAttrbKey   contained	bar	ban[g]	cou[nt]	ra[nge] com[plete]	n[args]	re[gister] | syn keyword	vimUserAttrbKey   contained	bar	ban[g]	cou[nt]	ra[nge] com[plete]	n[args]	re[gister] | ||||||
| syn keyword	vimUserAttrbCmplt contained	augroup buffer color command compiler cscope dir environment event expression file file_in_path filetype function help highlight locale mapping menu option shellcmd sign syntax tag tag_listfiles var | syn keyword	vimUserAttrbCmplt contained	augroup buffer behave color command compiler cscope dir environment event expression file file_in_path filetype function help highlight history locale mapping menu option packadd shellcmd sign syntax syntime tag tag_listfiles user var | ||||||
| syn keyword	vimUserAttrbCmplt contained	custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError | syn keyword	vimUserAttrbCmplt contained	custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError | ||||||
| syn match	vimUserAttrbCmpltFunc contained	",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\h\w*\)\+\|\h\w*\)"hs=s+1 nextgroup=vimUserCmdError | syn match	vimUserAttrbCmpltFunc contained	",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\h\w*\)\+\|\h\w*\)"hs=s+1 nextgroup=vimUserCmdError | ||||||
|  |  | ||||||
| @@ -390,7 +390,7 @@ syn match	vimNotation	"\(\\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\ | |||||||
| syn match	vimNotation	"\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>"	contains=vimBracket | syn match	vimNotation	"\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>"	contains=vimBracket | ||||||
| syn match	vimNotation	"\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>"		contains=vimBracket | syn match	vimNotation	"\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>"		contains=vimBracket | ||||||
| syn match	vimNotation	'\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1			contains=vimBracket | syn match	vimNotation	'\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1			contains=vimBracket | ||||||
| syn match	vimNotation	'\(\\\|<lt>\)\=<\%(q-\)\=\(line[12]\|count\|bang\|reg\|args\|f-args\|lt\)>'	contains=vimBracket | syn match	vimNotation	'\(\\\|<lt>\)\=<\%(q-\)\=\(line[12]\|count\|bang\|reg\|args\|mods\|f-args\|f-mods\|lt\)>'	contains=vimBracket | ||||||
| syn match	vimNotation	"\(\\\|<lt>\)\=<\([cas]file\|abuf\|amatch\|cword\|cWORD\|client\)>"		contains=vimBracket | syn match	vimNotation	"\(\\\|<lt>\)\=<\([cas]file\|abuf\|amatch\|cword\|cWORD\|client\)>"		contains=vimBracket | ||||||
| syn match	vimBracket contained	"[\\<>]" | syn match	vimBracket contained	"[\\<>]" | ||||||
| syn case match | syn case match | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes