annotate runtime/syntax/sd.vim @ 7111:57c354f0115c v7.4.867

commit https://github.com/vim/vim/commit/9534680731ea342c2fed01a812559958923480da Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 15 15:57:29 2015 +0200 patch 7.4.867 Problem: Can't build on MS-Windows. (Taro Muraoka) Solution: Adjust #ifdef.
author Christian Brabandt <cb@256bit.org>
date Tue, 15 Sep 2015 16:00:04 +0200
parents b7811ab264bf
children 43efa4f5a8ea
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/
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
6 " Last Change: 2012 Feb 03 by Thilo Six
1121
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
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
14 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
15 set cpo&vim
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
16
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
17 " Always ignore case
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
18 syn case ignore
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
19
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
20 " Comments
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
21 syn match sdComment /\s*[#;].*$/
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
22
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
23 " IP Adresses
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
24 syn cluster sdIPCluster contains=sdIPError,sdIPSpecial
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
25 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
26 syn match sdIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
27 syn match sdIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@sdIPCluster
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
28
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
29 " Statements
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
30 syn keyword sdStatement AGGREGATE AUDIO_CHANNELS
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
31 syn keyword sdStatement BYTE_PER_PCKT BIT_PER_SAMPLE BITRATE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
32 syn keyword sdStatement CLOCK_RATE CODING_TYPE CREATOR
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
33 syn match sdStatement /^\s*CODING_TYPE\>/ nextgroup=sdCoding skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
34 syn match sdStatement /^\s*ENCODING_NAME\>/ nextgroup=sdEncoding skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
35 syn keyword sdStatement FILE_NAME FRAME_LEN FRAME_RATE FORCE_FRAME_RATE
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
36 syn keyword sdStatement LICENSE
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
37 syn match sdStatement /^\s*MEDIA_SOURCE\>/ nextgroup=sdSource skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
38 syn match sdStatement /^\s*MULTICAST\>/ nextgroup=sdIP skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
39 syn keyword sdStatement PAYLOAD_TYPE PKT_LEN PRIORITY
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
40 syn keyword sdStatement SAMPLE_RATE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
41 syn keyword sdStatement TITLE TWIN
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
42 syn keyword sdStatement VERIFY
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
43
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
44 " Known Options
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
45 syn keyword sdEncoding H26L MPV MP2T MP4V-ES
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
46 syn keyword sdCoding FRAME SAMPLE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
47 syn keyword sdSource STORED LIVE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
48
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
49 "Specials
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
50 syn keyword sdSpecial TRUE FALSE NULL
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
51 syn keyword sdDelimiter STREAM STREAM_END
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
52 syn match sdError /^search .\{257,}/
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
53
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
54 if version >= 508 || !exists("did_config_syntax_inits")
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
55 if version < 508
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
56 let did_config_syntax_inits = 1
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
57 command! -nargs=+ HiLink hi link <args>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
58 else
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
59 command! -nargs=+ HiLink hi def link <args>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
60 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
61
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
62 HiLink sdIP Number
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
63 HiLink sdHostname Type
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
64 HiLink sdEncoding Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
65 HiLink sdCoding Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
66 HiLink sdSource Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
67 HiLink sdComment Comment
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
68 HiLink sdIPError Error
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
69 HiLink sdError Error
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
70 HiLink sdStatement Statement
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
71 HiLink sdIPSpecial Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
72 HiLink sdSpecial Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
73 HiLink sdDelimiter Delimiter
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
74
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
75 delcommand HiLink
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
76 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
77
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
78 let b:current_syntax = "sd"
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
79
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
80 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
81 unlet s:cpo_save