| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim syntax file | 
					
						
							|  |  |  | " Language:	rpcgen | 
					
						
							| 
									
										
										
										
											2015-01-10 15:09:25 +01:00
										 |  |  | " Maintainer:	Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz> | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | " Last Change:	Aug 31, 2016 | 
					
						
							|  |  |  | " Version:	12 | 
					
						
							| 
									
										
										
										
											2015-01-10 15:09:25 +01:00
										 |  |  | " URL:	http://www.drchip.org/astronaut/vim/index.html#SYNTAX_RPCGEN | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-14 12:52:36 +01:00
										 |  |  | if exists("b:current_syntax") | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Read the C syntax to start with | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | runtime! syntax/c.vim | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | syn keyword rpcProgram	program				skipnl skipwhite nextgroup=rpcProgName | 
					
						
							|  |  |  | syn match   rpcProgName	contained	"\<\i\I*\>"	skipnl skipwhite nextgroup=rpcProgZone | 
					
						
							|  |  |  | syn region  rpcProgZone	contained	matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\(\d\+\|0x[23]\x\{7}\)\s*;"me=e-1 contains=rpcVersion,cComment,rpcProgNmbrErr | 
					
						
							|  |  |  | syn keyword rpcVersion	contained	version		skipnl skipwhite nextgroup=rpcVersName | 
					
						
							|  |  |  | syn match   rpcVersName	contained	"\<\i\I*\>"	skipnl skipwhite nextgroup=rpcVersZone | 
					
						
							|  |  |  | syn region  rpcVersZone	contained	matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\d\+\s*;"me=e-1 contains=cType,cStructure,cStorageClass,rpcDecl,rpcProcNmbr,cComment | 
					
						
							|  |  |  | syn keyword rpcDecl	contained	string | 
					
						
							|  |  |  | syn match   rpcProcNmbr	contained	"=\s*\d\+;"me=e-1 | 
					
						
							|  |  |  | syn match   rpcProgNmbrErr contained	"=\s*0x[^23]\x*"ms=s+1 | 
					
						
							|  |  |  | syn match   rpcPassThru			"^\s*%.*$" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Define the default highlighting. | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | if !exists("skip_rpcgen_syntax_inits") | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  |   hi def link rpcProgName	rpcName | 
					
						
							|  |  |  |   hi def link rpcProgram	rpcStatement | 
					
						
							|  |  |  |   hi def link rpcVersName	rpcName | 
					
						
							|  |  |  |   hi def link rpcVersion	rpcStatement | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  |   hi def link rpcDecl	cType | 
					
						
							|  |  |  |   hi def link rpcPassThru	cComment | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  |   hi def link rpcName	Special | 
					
						
							|  |  |  |   hi def link rpcProcNmbr	Delimiter | 
					
						
							|  |  |  |   hi def link rpcProgNmbrErr	Error | 
					
						
							|  |  |  |   hi def link rpcStatement	Statement | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "rpcgen" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " vim: ts=8 |