annotate runtime/syntax/sd.vim @ 2082:8ca3c9ad0bee v7.2.366

updated for version 7.2.366 Problem: CTRL-B doesn't go back to the first line of the buffer. Solution: Avoid an overflow when adding MAXCOL.
author Bram Moolenaar <bram@zimbu.org>
date Wed, 17 Feb 2010 18:20:37 +0100
parents e63691e7c504
children b7811ab264bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
1 " Language: streaming descriptor file
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
2 " Maintainer: Puria Nafisi Azizi (pna) <pna@netstudent.polito.it>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
3 " License: This file can be redistribued and/or modified under the same terms
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
4 " as Vim itself.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
5 " URL: http://netstudent.polito.it/vim_syntax/
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
6 " Last Change: 2006-09-27
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
7
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
8 if version < 600
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
9 syntax clear
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
11 finish
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
12 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
13
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
14 " Always ignore case
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
15 syn case ignore
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
16
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
17 " Comments
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
18 syn match sdComment /\s*[#;].*$/
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
19
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
20 " IP Adresses
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
21 syn cluster sdIPCluster contains=sdIPError,sdIPSpecial
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
22 syn match sdIPError /\%(\d\{4,}\|25[6-9]\|2[6-9]\d\|[3-9]\d\{2}\)[\.0-9]*/ contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
23 syn match sdIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
24 syn match sdIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@sdIPCluster
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
25
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
26 " Statements
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
27 syn keyword sdStatement AGGREGATE AUDIO_CHANNELS
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
28 syn keyword sdStatement BYTE_PER_PCKT BIT_PER_SAMPLE BITRATE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
29 syn keyword sdStatement CLOCK_RATE CODING_TYPE CREATOR
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
30 syn match sdStatement /^\s*CODING_TYPE\>/ nextgroup=sdCoding skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
31 syn match sdStatement /^\s*ENCODING_NAME\>/ nextgroup=sdEncoding skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
32 syn keyword sdStatement FILE_NAME FRAME_LEN FRAME_RATE FORCE_FRAME_RATE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
33 syn keyword sdStatement LICENSE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
34 syn match sdStatement /^\s*MEDIA_SOURCE\>/ nextgroup=sdSource skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
35 syn match sdStatement /^\s*MULTICAST\>/ nextgroup=sdIP skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
36 syn keyword sdStatement PAYLOAD_TYPE PKT_LEN PRIORITY
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
37 syn keyword sdStatement SAMPLE_RATE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
38 syn keyword sdStatement TITLE TWIN
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
39 syn keyword sdStatement VERIFY
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
40
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
41 " Known Options
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
42 syn keyword sdEncoding H26L MPV MP2T MP4V-ES
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
43 syn keyword sdCoding FRAME SAMPLE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
44 syn keyword sdSource STORED LIVE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
45
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
46 "Specials
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
47 syn keyword sdSpecial TRUE FALSE NULL
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
48 syn keyword sdDelimiter STREAM STREAM_END
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
49 syn match sdError /^search .\{257,}/
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
50
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
51 if version >= 508 || !exists("did_config_syntax_inits")
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
52 if version < 508
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
53 let did_config_syntax_inits = 1
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
54 command! -nargs=+ HiLink hi link <args>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
55 else
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
56 command! -nargs=+ HiLink hi def link <args>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
57 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
58
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
59 HiLink sdIP Number
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
60 HiLink sdHostname Type
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
61 HiLink sdEncoding Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
62 HiLink sdCoding Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
63 HiLink sdSource Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
64 HiLink sdComment Comment
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
65 HiLink sdIPError Error
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
66 HiLink sdError Error
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
67 HiLink sdStatement Statement
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
68 HiLink sdIPSpecial Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
69 HiLink sdSpecial Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
70 HiLink sdDelimiter Delimiter
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
71
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
72 delcommand HiLink
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
73 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
74
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
75 let b:current_syntax = "sd"