1 " Language: streaming descriptor file
2 " Maintainer: Puria Nafisi Azizi (pna) <pna@netstudent.polito.it>
3 " License: This file can be redistribued and/or modified under the same terms
5 " URL: http://netstudent.polito.it/vim_syntax/
6 " Last Change: 2006-09-27
10 elseif exists("b:current_syntax")
18 syn match sdComment /\s*[#;].*$/
21 syn cluster sdIPCluster contains=sdIPError,sdIPSpecial
22 syn match sdIPError /\%(\d\{4,}\|25[6-9]\|2[6-9]\d\|[3-9]\d\{2}\)[\.0-9]*/ contained
23 syn match sdIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained
24 syn match sdIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@sdIPCluster
27 syn keyword sdStatement AGGREGATE AUDIO_CHANNELS
28 syn keyword sdStatement BYTE_PER_PCKT BIT_PER_SAMPLE BITRATE
29 syn keyword sdStatement CLOCK_RATE CODING_TYPE CREATOR
30 syn match sdStatement /^\s*CODING_TYPE\>/ nextgroup=sdCoding skipwhite
31 syn match sdStatement /^\s*ENCODING_NAME\>/ nextgroup=sdEncoding skipwhite
32 syn keyword sdStatement FILE_NAME FRAME_LEN FRAME_RATE FORCE_FRAME_RATE
33 syn keyword sdStatement LICENSE
34 syn match sdStatement /^\s*MEDIA_SOURCE\>/ nextgroup=sdSource skipwhite
35 syn match sdStatement /^\s*MULTICAST\>/ nextgroup=sdIP skipwhite
36 syn keyword sdStatement PAYLOAD_TYPE PKT_LEN PRIORITY
37 syn keyword sdStatement SAMPLE_RATE
38 syn keyword sdStatement TITLE TWIN
39 syn keyword sdStatement VERIFY
42 syn keyword sdEncoding H26L MPV MP2T MP4V-ES
43 syn keyword sdCoding FRAME SAMPLE
44 syn keyword sdSource STORED LIVE
47 syn keyword sdSpecial TRUE FALSE NULL
48 syn keyword sdDelimiter STREAM STREAM_END
49 syn match sdError /^search .\{257,}/
51 if version >= 508 || !exists("did_config_syntax_inits")
53 let did_config_syntax_inits = 1
54 command! -nargs=+ HiLink hi link <args>
56 command! -nargs=+ HiLink hi def link <args>
60 HiLink sdHostname Type
61 HiLink sdEncoding Identifier
62 HiLink sdCoding Identifier
63 HiLink sdSource Identifier
64 HiLink sdComment Comment
65 HiLink sdIPError Error
67 HiLink sdStatement Statement
68 HiLink sdIPSpecial Special
69 HiLink sdSpecial Special
70 HiLink sdDelimiter Delimiter
75 let b:current_syntax = "sd"