| 
									
										
										
										
											2007-05-05 17:54:07 +00:00
										 |  |  | " Language: streaming descriptor file | 
					
						
							|  |  |  | " Maintainer: Puria Nafisi Azizi (pna) <pna@netstudent.polito.it> | 
					
						
							|  |  |  | " License: This file can be redistribued and/or modified under the same terms | 
					
						
							|  |  |  | "   as Vim itself. | 
					
						
							|  |  |  | " URL: http://netstudent.polito.it/vim_syntax/ | 
					
						
							| 
									
										
										
										
											2012-02-04 21:59:01 +01:00
										 |  |  | " Last Change: 2012 Feb 03 by Thilo Six | 
					
						
							| 
									
										
										
										
											2007-05-05 17:54:07 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " quit when a syntax file was already loaded | 
					
						
							|  |  |  | if exists("b:current_syntax") | 
					
						
							| 
									
										
										
										
											2007-05-05 17:54:07 +00:00
										 |  |  |         finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-04 21:59:01 +01:00
										 |  |  | let s:cpo_save = &cpo | 
					
						
							|  |  |  | set cpo&vim | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-05-05 17:54:07 +00:00
										 |  |  | " Always ignore case | 
					
						
							|  |  |  | syn case ignore | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Comments | 
					
						
							|  |  |  | syn match sdComment /\s*[#;].*$/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " IP Adresses | 
					
						
							|  |  |  | syn cluster sdIPCluster contains=sdIPError,sdIPSpecial | 
					
						
							|  |  |  | syn match sdIPError /\%(\d\{4,}\|25[6-9]\|2[6-9]\d\|[3-9]\d\{2}\)[\.0-9]*/ contained | 
					
						
							|  |  |  | syn match sdIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained | 
					
						
							|  |  |  | syn match sdIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@sdIPCluster | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Statements | 
					
						
							| 
									
										
										
										
											2012-02-04 21:59:01 +01:00
										 |  |  | syn keyword sdStatement AGGREGATE AUDIO_CHANNELS | 
					
						
							| 
									
										
										
										
											2007-05-05 17:54:07 +00:00
										 |  |  | syn keyword sdStatement BYTE_PER_PCKT BIT_PER_SAMPLE BITRATE | 
					
						
							|  |  |  | syn keyword sdStatement CLOCK_RATE CODING_TYPE CREATOR | 
					
						
							|  |  |  | syn match sdStatement /^\s*CODING_TYPE\>/ nextgroup=sdCoding skipwhite | 
					
						
							|  |  |  | syn match sdStatement /^\s*ENCODING_NAME\>/ nextgroup=sdEncoding skipwhite | 
					
						
							|  |  |  | syn keyword sdStatement FILE_NAME FRAME_LEN FRAME_RATE FORCE_FRAME_RATE | 
					
						
							| 
									
										
										
										
											2012-02-04 21:59:01 +01:00
										 |  |  | syn keyword sdStatement LICENSE | 
					
						
							| 
									
										
										
										
											2007-05-05 17:54:07 +00:00
										 |  |  | syn match sdStatement /^\s*MEDIA_SOURCE\>/ nextgroup=sdSource skipwhite | 
					
						
							|  |  |  | syn match sdStatement /^\s*MULTICAST\>/ nextgroup=sdIP skipwhite | 
					
						
							|  |  |  | syn keyword sdStatement PAYLOAD_TYPE PKT_LEN PRIORITY | 
					
						
							|  |  |  | syn keyword sdStatement SAMPLE_RATE | 
					
						
							|  |  |  | syn keyword sdStatement TITLE TWIN | 
					
						
							|  |  |  | syn keyword sdStatement VERIFY | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Known Options | 
					
						
							|  |  |  | syn keyword sdEncoding H26L MPV MP2T MP4V-ES | 
					
						
							|  |  |  | syn keyword sdCoding FRAME SAMPLE | 
					
						
							|  |  |  | syn keyword sdSource STORED LIVE | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | "Specials | 
					
						
							|  |  |  | syn keyword sdSpecial TRUE FALSE NULL | 
					
						
							|  |  |  | syn keyword sdDelimiter STREAM STREAM_END | 
					
						
							|  |  |  | syn match sdError /^search .\{257,}/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link sdIP Number | 
					
						
							|  |  |  | hi def link sdHostname Type | 
					
						
							|  |  |  | hi def link sdEncoding Identifier | 
					
						
							|  |  |  | hi def link sdCoding Identifier | 
					
						
							|  |  |  | hi def link sdSource Identifier | 
					
						
							|  |  |  | hi def link sdComment Comment | 
					
						
							|  |  |  | hi def link sdIPError Error | 
					
						
							|  |  |  | hi def link sdError Error | 
					
						
							|  |  |  | hi def link sdStatement Statement | 
					
						
							|  |  |  | hi def link sdIPSpecial Special | 
					
						
							|  |  |  | hi def link sdSpecial Special | 
					
						
							|  |  |  | hi def link sdDelimiter Delimiter | 
					
						
							| 
									
										
										
										
											2007-05-05 17:54:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "sd" | 
					
						
							| 
									
										
										
										
											2012-02-04 21:59:01 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | let &cpo = s:cpo_save | 
					
						
							|  |  |  | unlet s:cpo_save |