mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	vim-patch:4700398e384f (#16538)
Update runtime files
4700398e38
partial skip:
doc/sign.txt
doc/various.txt
doc/motion.txt
			
			
This commit is contained in:
		
							
								
								
									
										2
									
								
								runtime/autoload/dist/ft.vim
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								runtime/autoload/dist/ft.vim
									
									
									
									
										vendored
									
									
								
							@@ -1,7 +1,7 @@
 | 
				
			|||||||
" Vim functions for file type detection
 | 
					" Vim functions for file type detection
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
" Maintainer:	Bram Moolenaar <Bram@vim.org>
 | 
					" Maintainer:	Bram Moolenaar <Bram@vim.org>
 | 
				
			||||||
" Last Change:	2020 Aug 17
 | 
					" Last Change:	2021 Nov 27
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" These functions are moved here from runtime/filetype.vim to make startup
 | 
					" These functions are moved here from runtime/filetype.vim to make startup
 | 
				
			||||||
" faster.
 | 
					" faster.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -863,9 +863,11 @@ Note: these are typed literally, they are not special keys!
 | 
				
			|||||||
							*:<amatch>* *<amatch>*
 | 
												*:<amatch>* *<amatch>*
 | 
				
			||||||
	<amatch>   When executing autocommands, is replaced with the match for
 | 
						<amatch>   When executing autocommands, is replaced with the match for
 | 
				
			||||||
		   which this autocommand was executed.  *E497*
 | 
							   which this autocommand was executed.  *E497*
 | 
				
			||||||
		   It differs from <afile> only when the file name isn't used
 | 
							   It differs from <afile> when the file name isn't used to
 | 
				
			||||||
		   to match with (for FileType, Syntax and SpellFileMissing
 | 
							   match with (for FileType, Syntax and SpellFileMissing
 | 
				
			||||||
		   events).
 | 
							   events).
 | 
				
			||||||
 | 
							   When the match is with a file name, it is expanded to the
 | 
				
			||||||
 | 
					 		   full path.
 | 
				
			||||||
							*:<sfile>* *<sfile>*
 | 
												*:<sfile>* *<sfile>*
 | 
				
			||||||
	<sfile>    When executing a ":source" command, is replaced with the
 | 
						<sfile>    When executing a ":source" command, is replaced with the
 | 
				
			||||||
		   file name of the sourced file.  *E498*
 | 
							   file name of the sourced file.  *E498*
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -684,9 +684,12 @@ A jump table for the options with a short description can be found at |Q_op|.
 | 
				
			|||||||
'autowrite' 'aw'	boolean	(default off)
 | 
					'autowrite' 'aw'	boolean	(default off)
 | 
				
			||||||
			global
 | 
								global
 | 
				
			||||||
	Write the contents of the file, if it has been modified, on each
 | 
						Write the contents of the file, if it has been modified, on each
 | 
				
			||||||
	:next, :rewind, :last, :first, :previous, :stop, :suspend, :tag, :!,
 | 
						`:next`, `:rewind`, `:last`, `:first`, `:previous`, `:stop`,
 | 
				
			||||||
	:make, CTRL-] and CTRL-^ command; and when a :buffer, CTRL-O, CTRL-I,
 | 
						`:suspend`, `:tag`, `:!`, `:make`, CTRL-] and CTRL-^ command; and when
 | 
				
			||||||
	'{A-Z0-9}, or `{A-Z0-9} command takes one to another file.
 | 
						a :buffer, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command takes one
 | 
				
			||||||
 | 
						to another file.
 | 
				
			||||||
 | 
						A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is
 | 
				
			||||||
 | 
						set to "hide" and `:next` is used
 | 
				
			||||||
	Note that for some commands the 'autowrite' option is not used, see
 | 
						Note that for some commands the 'autowrite' option is not used, see
 | 
				
			||||||
	'autowriteall' for that.
 | 
						'autowriteall' for that.
 | 
				
			||||||
	Some buffers will not be written, specifically when 'buftype' is
 | 
						Some buffers will not be written, specifically when 'buftype' is
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -837,9 +837,9 @@ lists.  They set one of the existing error lists as the current one.
 | 
				
			|||||||
						*:chistory* *:chi*
 | 
											*:chistory* *:chi*
 | 
				
			||||||
:[count]chi[story]	Show the list of error lists.  The current list is
 | 
					:[count]chi[story]	Show the list of error lists.  The current list is
 | 
				
			||||||
			marked with ">".  The output looks like:
 | 
								marked with ">".  The output looks like:
 | 
				
			||||||
				  error list 1 of 3; 43 errors ~
 | 
								  error list 1 of 3; 43 errors   :make  ~
 | 
				
			||||||
				> error list 2 of 3; 0 errors ~
 | 
								> error list 2 of 3; 0 errors    :helpgrep tag  ~
 | 
				
			||||||
				  error list 3 of 3; 15 errors ~
 | 
								  error list 3 of 3; 15 errors   :grep ex_help *.c ~
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			When [count] is given, then the count'th quickfix
 | 
								When [count] is given, then the count'th quickfix
 | 
				
			||||||
			list is made the current list. Example: >
 | 
								list is made the current list. Example: >
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -416,11 +416,12 @@ sign_getdefined([{name}])				*sign_getdefined()*
 | 
				
			|||||||
		following entries:
 | 
							following entries:
 | 
				
			||||||
		   icon		full path to the bitmap file of the sign
 | 
							   icon		full path to the bitmap file of the sign
 | 
				
			||||||
		   linehl	highlight group used for the whole line the
 | 
							   linehl	highlight group used for the whole line the
 | 
				
			||||||
				sign is placed in.
 | 
									sign is placed in; not present if not set.
 | 
				
			||||||
		   name		name of the sign
 | 
							   name		name of the sign
 | 
				
			||||||
		   text		text that is displayed when there is no icon
 | 
							   text		text that is displayed when there is no icon
 | 
				
			||||||
				or the GUI is not being used.
 | 
									or the GUI is not being used.
 | 
				
			||||||
		   texthl	highlight group used for the text item
 | 
							   texthl	highlight group used for the text item; not
 | 
				
			||||||
 | 
									present if not set.
 | 
				
			||||||
		   numhl	highlight group used for 'number' column at the
 | 
							   numhl	highlight group used for 'number' column at the
 | 
				
			||||||
				associated line. Overrides |hl-LineNr|,
 | 
									associated line. Overrides |hl-LineNr|,
 | 
				
			||||||
				|hl-CursorLineNr|.
 | 
									|hl-CursorLineNr|.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3161,6 +3161,14 @@ buffer by buffer basis.
 | 
				
			|||||||
For more detailed instructions see |ft_sql.txt|.
 | 
					For more detailed instructions see |ft_sql.txt|.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SQUIRREL				*squirrel.vim* *ft-squirrel-syntax*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Squirrel is a high level imperative, object-oriented programming language,
 | 
				
			||||||
 | 
					designed to be a light-weight scripting language that fits in the size, memory
 | 
				
			||||||
 | 
					bandwidth, and real-time requirements of applications like video games.  Files
 | 
				
			||||||
 | 
					with the following extensions are recognized as squirrel files: .nut.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
TCSH						*tcsh.vim* *ft-tcsh-syntax*
 | 
					TCSH						*tcsh.vim* *ft-tcsh-syntax*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This covers the shell named "tcsh".  It is a superset of csh.  See |csh.vim|
 | 
					This covers the shell named "tcsh".  It is a superset of csh.  See |csh.vim|
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
" Vim support file to detect file types
 | 
					" Vim support file to detect file types
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
" Maintainer:	Bram Moolenaar <Bram@vim.org>
 | 
					" Maintainer:	Bram Moolenaar <Bram@vim.org>
 | 
				
			||||||
" Last Change:	2021 Nov 16
 | 
					" Last Change:	2021 Dec 03
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" Listen very carefully, I will say this only once
 | 
					" Listen very carefully, I will say this only once
 | 
				
			||||||
if exists("did_load_filetypes")
 | 
					if exists("did_load_filetypes")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
" Vim indent file
 | 
					" Vim indent file
 | 
				
			||||||
" Language:	Vim script
 | 
					" Language:	Vim script
 | 
				
			||||||
" Maintainer:	Bram Moolenaar <Bram@vim.org>
 | 
					" Maintainer:	Bram Moolenaar <Bram@vim.org>
 | 
				
			||||||
" Last Change:	2021 Nov 03
 | 
					" Last Change:	2021 Nov 27
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" Only load this indent file when no other was loaded.
 | 
					" Only load this indent file when no other was loaded.
 | 
				
			||||||
if exists("b:did_indent")
 | 
					if exists("b:did_indent")
 | 
				
			||||||
@@ -12,6 +12,7 @@ let b:did_indent = 1
 | 
				
			|||||||
setlocal indentexpr=GetVimIndent()
 | 
					setlocal indentexpr=GetVimIndent()
 | 
				
			||||||
setlocal indentkeys+==end,=},=else,=cat,=finall,=END,0\\,0=\"\\\ 
 | 
					setlocal indentkeys+==end,=},=else,=cat,=finall,=END,0\\,0=\"\\\ 
 | 
				
			||||||
setlocal indentkeys-=0#
 | 
					setlocal indentkeys-=0#
 | 
				
			||||||
 | 
					setlocal indentkeys-=:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let b:undo_indent = "setl indentkeys< indentexpr<"
 | 
					let b:undo_indent = "setl indentkeys< indentexpr<"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
"
 | 
					"
 | 
				
			||||||
" Author: Bram Moolenaar
 | 
					" Author: Bram Moolenaar
 | 
				
			||||||
" Copyright: Vim license applies, see ":help license"
 | 
					" Copyright: Vim license applies, see ":help license"
 | 
				
			||||||
" Last Change: 2021 Nov 27
 | 
					" Last Change: 2021 Nov 29
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
" WORK IN PROGRESS - Only the basics work
 | 
					" WORK IN PROGRESS - Only the basics work
 | 
				
			||||||
" Note: On MS-Windows you need a recent version of gdb.  The one included with
 | 
					" Note: On MS-Windows you need a recent version of gdb.  The one included with
 | 
				
			||||||
@@ -485,7 +485,7 @@ func s:StartDebugCommon(dict)
 | 
				
			|||||||
  " Run the command if the bang attribute was given and got to the debug
 | 
					  " Run the command if the bang attribute was given and got to the debug
 | 
				
			||||||
  " window.
 | 
					  " window.
 | 
				
			||||||
  if get(a:dict, 'bang', 0)
 | 
					  if get(a:dict, 'bang', 0)
 | 
				
			||||||
    call s:SendCommand('-exec-run')
 | 
					    call s:SendResumingCommand('-exec-run')
 | 
				
			||||||
    call win_gotoid(s:ptywin)
 | 
					    call win_gotoid(s:ptywin)
 | 
				
			||||||
  endif
 | 
					  endif
 | 
				
			||||||
endfunc
 | 
					endfunc
 | 
				
			||||||
@@ -524,9 +524,14 @@ func TermDebugSendCommand(cmd)
 | 
				
			|||||||
  endif
 | 
					  endif
 | 
				
			||||||
endfunc
 | 
					endfunc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" Send a command only when stopped.  Used for :Next and :Step.
 | 
					" Send a command that resumes the program.  If the program isn't stopped the
 | 
				
			||||||
func s:SendCommandIfStopped(cmd)
 | 
					" command is not sent (to avoid a repeated command to cause trouble).
 | 
				
			||||||
 | 
					" If the command is sent then reset s:stopped.
 | 
				
			||||||
 | 
					func s:SendResumingCommand(cmd)
 | 
				
			||||||
  if s:stopped
 | 
					  if s:stopped
 | 
				
			||||||
 | 
					    " reset s:stopped here, it may take a bit of time before we get a response
 | 
				
			||||||
 | 
					    let s:stopped = 0
 | 
				
			||||||
 | 
					    " call ch_log('assume that program is running after this command')
 | 
				
			||||||
    call s:SendCommand(a:cmd)
 | 
					    call s:SendCommand(a:cmd)
 | 
				
			||||||
  " else
 | 
					  " else
 | 
				
			||||||
    " call ch_log('dropping command, program is running: ' . a:cmd)
 | 
					    " call ch_log('dropping command, program is running: ' . a:cmd)
 | 
				
			||||||
@@ -815,11 +820,11 @@ func s:InstallCommands()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  command -nargs=? Break call s:SetBreakpoint(<q-args>)
 | 
					  command -nargs=? Break call s:SetBreakpoint(<q-args>)
 | 
				
			||||||
  command Clear call s:ClearBreakpoint()
 | 
					  command Clear call s:ClearBreakpoint()
 | 
				
			||||||
  command Step call s:SendCommandIfStopped('-exec-step')
 | 
					  command Step call s:SendResumingCommand('-exec-step')
 | 
				
			||||||
  command Over call s:SendCommandIfStopped('-exec-next')
 | 
					  command Over call s:SendResumingCommand('-exec-next')
 | 
				
			||||||
  command Finish call s:SendCommandIfStopped('-exec-finish')
 | 
					  command Finish call s:SendResumingCommand('-exec-finish')
 | 
				
			||||||
  command -nargs=* Run call s:Run(<q-args>)
 | 
					  command -nargs=* Run call s:Run(<q-args>)
 | 
				
			||||||
  command -nargs=* Arguments call s:SendCommand('-exec-arguments ' . <q-args>)
 | 
					  command -nargs=* Arguments call s:SendResumingCommand('-exec-arguments ' . <q-args>)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if s:way == 'prompt'
 | 
					  if s:way == 'prompt'
 | 
				
			||||||
    command Stop call s:PromptInterrupt()
 | 
					    command Stop call s:PromptInterrupt()
 | 
				
			||||||
@@ -978,9 +983,9 @@ endfunc
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
func s:Run(args)
 | 
					func s:Run(args)
 | 
				
			||||||
  if a:args != ''
 | 
					  if a:args != ''
 | 
				
			||||||
    call s:SendCommand('-exec-arguments ' . a:args)
 | 
					    call s:SendResumingCommand('-exec-arguments ' . a:args)
 | 
				
			||||||
  endif
 | 
					  endif
 | 
				
			||||||
  call s:SendCommand('-exec-run')
 | 
					  call s:SendResumingCommand('-exec-run')
 | 
				
			||||||
endfunc
 | 
					endfunc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func s:SendEval(expr)
 | 
					func s:SendEval(expr)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
" Vim syntax file
 | 
					" Vim syntax file
 | 
				
			||||||
" Language:	Django template
 | 
					" Language:	Django template
 | 
				
			||||||
" Maintainer:	Dave Hodder <dmh@dmh.org.uk>
 | 
					" Maintainer:	Dave Hodder <dmh@dmh.org.uk>
 | 
				
			||||||
" Last Change:	2014 Jul 13
 | 
					" Last Change:	2021 Nov 29
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" quit when a syntax file was already loaded
 | 
					" quit when a syntax file was already loaded
 | 
				
			||||||
if exists("b:current_syntax")
 | 
					if exists("b:current_syntax")
 | 
				
			||||||
@@ -31,6 +31,7 @@ syn keyword djangoStatement contained closecomment widthratio url with endwith
 | 
				
			|||||||
syn keyword djangoStatement contained get_current_language trans noop blocktrans
 | 
					syn keyword djangoStatement contained get_current_language trans noop blocktrans
 | 
				
			||||||
syn keyword djangoStatement contained endblocktrans get_available_languages
 | 
					syn keyword djangoStatement contained endblocktrans get_available_languages
 | 
				
			||||||
syn keyword djangoStatement contained get_current_language_bidi plural
 | 
					syn keyword djangoStatement contained get_current_language_bidi plural
 | 
				
			||||||
 | 
					syn keyword djangoStatement contained translate blocktranslate endblocktranslate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" Django templete built-in filters
 | 
					" Django templete built-in filters
 | 
				
			||||||
syn keyword djangoFilter contained add addslashes capfirst center cut date
 | 
					syn keyword djangoFilter contained add addslashes capfirst center cut date
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										50
									
								
								runtime/syntax/squirrel.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								runtime/syntax/squirrel.vim
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
				
			|||||||
 | 
					" Vim syntax file
 | 
				
			||||||
 | 
					" Language: squirrel
 | 
				
			||||||
 | 
					" Current Maintainer: Matt Dunford (zenmatic@gmail.com)
 | 
				
			||||||
 | 
					" URL: https://github.com/zenmatic/vim-syntax-squirrel
 | 
				
			||||||
 | 
					" Last Change:	2021 Nov 28
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					" http://squirrel-lang.org/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					" quit when a syntax file was already loaded
 | 
				
			||||||
 | 
					if exists("b:current_syntax")
 | 
				
			||||||
 | 
					  finish
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					" inform C syntax that the file was included from cpp.vim
 | 
				
			||||||
 | 
					let b:filetype_in_cpp_family = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					" Read the C syntax to start with
 | 
				
			||||||
 | 
					runtime! syntax/c.vim
 | 
				
			||||||
 | 
					unlet b:current_syntax
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					" squirrel extensions
 | 
				
			||||||
 | 
					syn keyword squirrelStatement	delete this in yield resume base clone
 | 
				
			||||||
 | 
					syn keyword squirrelAccess	local
 | 
				
			||||||
 | 
					syn keyword cConstant           null
 | 
				
			||||||
 | 
					syn keyword squirrelModifier	static
 | 
				
			||||||
 | 
					syn keyword squirrelType	bool instanceof typeof
 | 
				
			||||||
 | 
					syn keyword squirrelExceptions	throw try catch
 | 
				
			||||||
 | 
					syn keyword squirrelStructure	class function extends constructor
 | 
				
			||||||
 | 
					syn keyword squirrelBoolean	true false
 | 
				
			||||||
 | 
					syn keyword squirrelRepeat	foreach
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					syn region squirrelMultiString start='@"' end='"$' end='";$'me=e-1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					syn match squirrelShComment "^\s*#.*$"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					" Default highlighting
 | 
				
			||||||
 | 
					hi def link squirrelAccess		squirrelStatement
 | 
				
			||||||
 | 
					hi def link squirrelExceptions		Exception
 | 
				
			||||||
 | 
					hi def link squirrelStatement		Statement
 | 
				
			||||||
 | 
					hi def link squirrelModifier		Type
 | 
				
			||||||
 | 
					hi def link squirrelType		Type
 | 
				
			||||||
 | 
					hi def link squirrelStructure		Structure
 | 
				
			||||||
 | 
					hi def link squirrelBoolean		Boolean
 | 
				
			||||||
 | 
					hi def link squirrelMultiString		String
 | 
				
			||||||
 | 
					hi def link squirrelRepeat		cRepeat
 | 
				
			||||||
 | 
					hi def link squirrelShComment		Comment
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					let b:current_syntax = "squirrel"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					" vim: ts=8
 | 
				
			||||||
@@ -1,9 +1,11 @@
 | 
				
			|||||||
" Vim syntax file
 | 
					" Vim syntax file
 | 
				
			||||||
" Language:	Visual Basic
 | 
					" Language:     Visual Basic
 | 
				
			||||||
" Maintainer:	Tim Chase <vb.vim@tim.thechases.com>
 | 
					" Maintainer:   Doug Kearns <dougkearns@gmail.com>
 | 
				
			||||||
" Former Maintainer:	Robert M. Cortopassi <cortopar@mindspring.com>
 | 
					" Former Maintainer:    Tim Chase <vb.vim@tim.thechases.com>
 | 
				
			||||||
"	(tried multiple times to contact, but email bounced)
 | 
					" Former Maintainer:    Robert M. Cortopassi <cortopar@mindspring.com>
 | 
				
			||||||
 | 
					"       (tried multiple times to contact, but email bounced)
 | 
				
			||||||
" Last Change:
 | 
					" Last Change:
 | 
				
			||||||
 | 
					"   2021 Nov 26  Incorporated additions from Doug Kearns
 | 
				
			||||||
"   2005 May 25  Synched with work by Thomas Barthel
 | 
					"   2005 May 25  Synched with work by Thomas Barthel
 | 
				
			||||||
"   2004 May 30  Added a few keywords
 | 
					"   2004 May 30  Added a few keywords
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -13,7 +15,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
" quit when a syntax file was already loaded
 | 
					" quit when a syntax file was already loaded
 | 
				
			||||||
if exists("b:current_syntax")
 | 
					if exists("b:current_syntax")
 | 
				
			||||||
	finish
 | 
					        finish
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" VB is case insensitive
 | 
					" VB is case insensitive
 | 
				
			||||||
@@ -233,7 +235,7 @@ syn keyword vbKeyword Public PublicNotCreateable OnNewProcessSingleUse
 | 
				
			|||||||
syn keyword vbKeyword InSameProcessMultiUse GlobalMultiUse Resume Seek
 | 
					syn keyword vbKeyword InSameProcessMultiUse GlobalMultiUse Resume Seek
 | 
				
			||||||
syn keyword vbKeyword Set Static Step String Time WithEvents
 | 
					syn keyword vbKeyword Set Static Step String Time WithEvents
 | 
				
			||||||
 | 
					
 | 
				
			||||||
syn keyword vbTodo contained	TODO
 | 
					syn keyword vbTodo contained    TODO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"Datatypes
 | 
					"Datatypes
 | 
				
			||||||
syn keyword vbTypes Boolean Byte Currency Date Decimal Double Empty
 | 
					syn keyword vbTypes Boolean Byte Currency Date Decimal Double Empty
 | 
				
			||||||
@@ -319,46 +321,54 @@ syn match vbNumber "\<\d\+\>"
 | 
				
			|||||||
syn match vbNumber "\<\d\+\.\d*\>"
 | 
					syn match vbNumber "\<\d\+\.\d*\>"
 | 
				
			||||||
"floating point number, starting with a dot
 | 
					"floating point number, starting with a dot
 | 
				
			||||||
syn match vbNumber "\.\d\+\>"
 | 
					syn match vbNumber "\.\d\+\>"
 | 
				
			||||||
"syn match  vbNumber		"{[[:xdigit:]-]\+}\|&[hH][[:xdigit:]]\+&"
 | 
					"syn match  vbNumber            "{[[:xdigit:]-]\+}\|&[hH][[:xdigit:]]\+&"
 | 
				
			||||||
"syn match  vbNumber		":[[:xdigit:]]\+"
 | 
					"syn match  vbNumber            ":[[:xdigit:]]\+"
 | 
				
			||||||
"syn match  vbNumber		"[-+]\=\<\d\+\>"
 | 
					"syn match  vbNumber            "[-+]\=\<\d\+\>"
 | 
				
			||||||
syn match  vbFloat		"[-+]\=\<\d\+[eE][\-+]\=\d\+"
 | 
					syn match  vbFloat              "[-+]\=\<\d\+[eE][\-+]\=\d\+"
 | 
				
			||||||
syn match  vbFloat		"[-+]\=\<\d\+\.\d*\([eE][\-+]\=\d\+\)\="
 | 
					syn match  vbFloat              "[-+]\=\<\d\+\.\d*\([eE][\-+]\=\d\+\)\="
 | 
				
			||||||
syn match  vbFloat		"[-+]\=\<\.\d\+\([eE][\-+]\=\d\+\)\="
 | 
					syn match  vbFloat              "[-+]\=\<\.\d\+\([eE][\-+]\=\d\+\)\="
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" String and Character contstants
 | 
					" String and Character constants
 | 
				
			||||||
syn region  vbString		start=+"+  end=+"\|$+
 | 
					syn region  vbString		start=+"+  end=+"\|$+
 | 
				
			||||||
syn region  vbComment		start="\(^\|\s\)REM\s" end="$" contains=vbTodo
 | 
					syn region  vbComment		start="\(^\|\s\)REM\s" end="$" contains=vbTodo
 | 
				
			||||||
syn region  vbComment		start="\(^\|\s\)\'"   end="$" contains=vbTodo
 | 
					syn region  vbComment		start="\(^\|\s\)\'"   end="$" contains=vbTodo
 | 
				
			||||||
syn match   vbLineNumber	"^\d\+\(\s\|$\)"
 | 
					syn match   vbLineLabel		"^\h\w\+:"
 | 
				
			||||||
syn match   vbTypeSpecifier  "[a-zA-Z0-9][\$%&!#]"ms=s+1
 | 
					syn match   vbLineNumber	"^\d\+\(:\|\s\|$\)"
 | 
				
			||||||
 | 
					syn match   vbTypeSpecifier  "\<\a\w*[@\$%&!#]"ms=s+1
 | 
				
			||||||
syn match   vbTypeSpecifier  "#[a-zA-Z0-9]"me=e-1
 | 
					syn match   vbTypeSpecifier  "#[a-zA-Z0-9]"me=e-1
 | 
				
			||||||
 | 
					" Conditional Compilation
 | 
				
			||||||
 | 
					syn match  vbPreProc "^#const\>"
 | 
				
			||||||
 | 
					syn region vbPreProc matchgroup=PreProc start="^#if\>"     end="\<then\>" transparent contains=TOP
 | 
				
			||||||
 | 
					syn region vbPreProc matchgroup=PreProc start="^#elseif\>" end="\<then\>" transparent contains=TOP
 | 
				
			||||||
 | 
					syn match  vbPreProc "^#else\>"
 | 
				
			||||||
 | 
					syn match  vbPreProc "^#end\s*if\>"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" Define the default highlighting.
 | 
					" Define the default highlighting.
 | 
				
			||||||
" Only when an item doesn't have highlighting yet
 | 
					" Only when an item doesn't have highlighting yet
 | 
				
			||||||
 | 
					
 | 
				
			||||||
hi def link vbBoolean		Boolean
 | 
					hi def link vbBoolean           Boolean
 | 
				
			||||||
hi def link vbLineNumber		Comment
 | 
					hi def link vbLineNumber        Comment
 | 
				
			||||||
hi def link vbComment		Comment
 | 
					hi def link vbLineLabel         Comment
 | 
				
			||||||
hi def link vbConditional	Conditional
 | 
					hi def link vbComment           Comment
 | 
				
			||||||
hi def link vbConst			Constant
 | 
					hi def link vbConditional       Conditional
 | 
				
			||||||
hi def link vbDefine			Constant
 | 
					hi def link vbConst             Constant
 | 
				
			||||||
hi def link vbError			Error
 | 
					hi def link vbDefine            Constant
 | 
				
			||||||
hi def link vbFunction		Identifier
 | 
					hi def link vbError             Error
 | 
				
			||||||
hi def link vbIdentifier		Identifier
 | 
					hi def link vbFunction          Identifier
 | 
				
			||||||
hi def link vbNumber			Number
 | 
					hi def link vbIdentifier        Identifier
 | 
				
			||||||
hi def link vbFloat			Float
 | 
					hi def link vbNumber            Number
 | 
				
			||||||
hi def link vbMethods		PreProc
 | 
					hi def link vbFloat             Float
 | 
				
			||||||
hi def link vbOperator		Operator
 | 
					hi def link vbMethods           PreProc
 | 
				
			||||||
hi def link vbRepeat			Repeat
 | 
					hi def link vbOperator          Operator
 | 
				
			||||||
hi def link vbString			String
 | 
					hi def link vbRepeat            Repeat
 | 
				
			||||||
hi def link vbStatement		Statement
 | 
					hi def link vbString            String
 | 
				
			||||||
hi def link vbKeyword		Statement
 | 
					hi def link vbStatement         Statement
 | 
				
			||||||
hi def link vbEvents			Special
 | 
					hi def link vbKeyword           Statement
 | 
				
			||||||
hi def link vbTodo			Todo
 | 
					hi def link vbEvents            Special
 | 
				
			||||||
hi def link vbTypes			Type
 | 
					hi def link vbTodo              Todo
 | 
				
			||||||
hi def link vbTypeSpecifier	Type
 | 
					hi def link vbTypes             Type
 | 
				
			||||||
 | 
					hi def link vbTypeSpecifier     Type
 | 
				
			||||||
 | 
					hi def link vbPreProc           PreProc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let b:current_syntax = "vb"
 | 
					let b:current_syntax = "vb"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,7 +53,7 @@ syn case ignore
 | 
				
			|||||||
syn keyword vimGroup contained	Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo 
 | 
					syn keyword vimGroup contained	Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
" Default highlighting groups {{{2
 | 
					" Default highlighting groups {{{2
 | 
				
			||||||
syn keyword vimHLGroup contained	ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineNr DiffAdd DiffChange DiffDelete DiffText Directory EndOfBuffer ErrorMsg FoldColumn Folded IncSearch LineNr MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question QuickFixLine Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC TabLine TabLineFill TabLineSel Title Tooltip VertSplit Visual WarningMsg WildMenu 
 | 
					syn keyword vimHLGroup contained	ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineFold CursorLineNr CursorLineSign DiffAdd DiffChange DiffDelete DiffText Directory EndOfBuffer ErrorMsg FoldColumn Folded IncSearch LineNr MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question QuickFixLine Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC TabLine TabLineFill TabLineSel Title Tooltip VertSplit Visual WarningMsg WildMenu 
 | 
				
			||||||
syn match vimHLGroup contained	"Conceal"
 | 
					syn match vimHLGroup contained	"Conceal"
 | 
				
			||||||
syn keyword vimOnlyHLGroup contained	LineNrAbove LineNrBelow StatusLineTerm Terminal VisualNOS
 | 
					syn keyword vimOnlyHLGroup contained	LineNrAbove LineNrBelow StatusLineTerm Terminal VisualNOS
 | 
				
			||||||
syn keyword nvimHLGroup contained	Substitute TermCursor TermCursorNC
 | 
					syn keyword nvimHLGroup contained	Substitute TermCursor TermCursorNC
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user