| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim syntax file | 
					
						
							| 
									
										
										
										
											2006-03-27 17:01:56 +00:00
										 |  |  | " Language:     Subversion (svn) commit file | 
					
						
							| 
									
										
										
										
											2012-02-13 00:05:22 +01:00
										 |  |  | " Maintainer:   Dmitry Vasiliev <dima at hlabs dot org> | 
					
						
							|  |  |  | " URL:          https://github.com/hdima/vim-scripts/blob/master/syntax/svn.vim | 
					
						
							| 
									
										
										
										
											2013-11-09 03:41:58 +01:00
										 |  |  | " Last Change:  2013-11-08 | 
					
						
							| 
									
										
										
										
											2006-03-27 17:01:56 +00:00
										 |  |  | " Filenames:    svn-commit*.tmp | 
					
						
							| 
									
										
										
										
											2013-11-09 03:41:58 +01:00
										 |  |  | " Version:      1.10 | 
					
						
							| 
									
										
										
										
											2006-03-27 17:01:56 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Contributors: | 
					
						
							| 
									
										
										
										
											2013-11-09 03:41:58 +01:00
										 |  |  | " | 
					
						
							|  |  |  | " List of the contributors in alphabetical order: | 
					
						
							|  |  |  | " | 
					
						
							| 
									
										
										
										
											2008-08-06 17:06:04 +00:00
										 |  |  | "   A. S. Budden | 
					
						
							| 
									
										
										
										
											2012-07-25 17:49:10 +02:00
										 |  |  | "   Ingo Karkat | 
					
						
							| 
									
										
										
										
											2013-11-09 03:41:58 +01:00
										 |  |  | "   Myk Taylor | 
					
						
							|  |  |  | "   Stefano Zacchiroli | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " For version 5.x: Clear all syntax items. | 
					
						
							|  |  |  | " For version 6.x: Quit when a syntax file was already loaded. | 
					
						
							|  |  |  | if version < 600 | 
					
						
							|  |  |  |   syntax clear | 
					
						
							|  |  |  | elseif exists("b:current_syntax") | 
					
						
							|  |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-09 03:41:58 +01:00
										 |  |  | syn spell toplevel | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn match svnFirstLine  "\%^.*" nextgroup=svnRegion,svnBlank skipnl | 
					
						
							|  |  |  | syn match svnSummary    "^.\{0,50\}" contained containedin=svnFirstLine nextgroup=svnOverflow contains=@Spell | 
					
						
							|  |  |  | syn match svnOverflow   ".*" contained contains=@Spell | 
					
						
							|  |  |  | syn match svnBlank      "^.*" contained contains=@Spell | 
					
						
							| 
									
										
										
										
											2012-07-25 17:49:10 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-09 03:41:58 +01:00
										 |  |  | syn region svnRegion    end="\%$" matchgroup=svnDelimiter start="^--.*--$" contains=svnRemoved,svnRenamed,svnAdded,svnModified,svnProperty,@NoSpell | 
					
						
							|  |  |  | syn match svnRemoved    "^D    .*$" contained contains=@NoSpell | 
					
						
							|  |  |  | syn match svnRenamed    "^R[ M][ U][ +] .*$" contained contains=@NoSpell | 
					
						
							|  |  |  | syn match svnAdded      "^A[ M][ U][ +] .*$" contained contains=@NoSpell | 
					
						
							|  |  |  | syn match svnModified   "^M[ M][ U]  .*$" contained contains=@NoSpell | 
					
						
							|  |  |  | syn match svnProperty   "^_M[ U]  .*$" contained contains=@NoSpell | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Synchronization. | 
					
						
							|  |  |  | syn sync clear | 
					
						
							| 
									
										
										
										
											2006-03-27 17:01:56 +00:00
										 |  |  | syn sync match svnSync  grouphere svnRegion "^--.*--$"me=s-1 | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Define the default highlighting. | 
					
						
							|  |  |  | " For version 5.7 and earlier: only when not done already. | 
					
						
							|  |  |  | " For version 5.8 and later: only when an item doesn't have highlighting yet. | 
					
						
							|  |  |  | if version >= 508 || !exists("did_svn_syn_inits") | 
					
						
							|  |  |  |   if version <= 508 | 
					
						
							|  |  |  |     let did_svn_syn_inits = 1 | 
					
						
							|  |  |  |     command -nargs=+ HiLink hi link <args> | 
					
						
							|  |  |  |   else | 
					
						
							|  |  |  |     command -nargs=+ HiLink hi def link <args> | 
					
						
							|  |  |  |   endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-09 03:41:58 +01:00
										 |  |  |   HiLink svnSummary     Keyword | 
					
						
							|  |  |  |   HiLink svnBlank       Error | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-03-27 17:01:56 +00:00
										 |  |  |   HiLink svnRegion      Comment | 
					
						
							| 
									
										
										
										
											2013-11-09 03:41:58 +01:00
										 |  |  |   HiLink svnDelimiter   NonText | 
					
						
							| 
									
										
										
										
											2006-03-27 17:01:56 +00:00
										 |  |  |   HiLink svnRemoved     Constant | 
					
						
							|  |  |  |   HiLink svnAdded       Identifier | 
					
						
							|  |  |  |   HiLink svnModified    Special | 
					
						
							|  |  |  |   HiLink svnProperty    Special | 
					
						
							| 
									
										
										
										
											2012-04-25 19:07:41 +02:00
										 |  |  |   HiLink svnRenamed     Special | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   delcommand HiLink | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "svn" |