annotate runtime/syntax/sd.vim @ 20084:a7952e905d40

Added tag v8.2.0597 for changeset 0da696bd735261ee52705110e666859410e61ebc
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Apr 2020 22:00:04 +0200
parents 46763b01cd9a
children
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
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3312
diff changeset
8 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3312
diff changeset
9 if exists("b:current_syntax")
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
10 finish
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
11 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
12
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
13 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
14 set cpo&vim
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
15
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
16 " Always ignore case
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
17 syn case ignore
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
18
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
19 " Comments
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
20 syn match sdComment /\s*[#;].*$/
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
21
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
22 " IP Adresses
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
23 syn cluster sdIPCluster contains=sdIPError,sdIPSpecial
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
24 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
25 syn match sdIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
26 syn match sdIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@sdIPCluster
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
27
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
28 " Statements
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
29 syn keyword sdStatement AGGREGATE AUDIO_CHANNELS
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
30 syn keyword sdStatement BYTE_PER_PCKT BIT_PER_SAMPLE BITRATE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
31 syn keyword sdStatement CLOCK_RATE CODING_TYPE CREATOR
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
32 syn match sdStatement /^\s*CODING_TYPE\>/ nextgroup=sdCoding skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
33 syn match sdStatement /^\s*ENCODING_NAME\>/ nextgroup=sdEncoding skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
34 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
35 syn keyword sdStatement LICENSE
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
36 syn match sdStatement /^\s*MEDIA_SOURCE\>/ nextgroup=sdSource skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
37 syn match sdStatement /^\s*MULTICAST\>/ nextgroup=sdIP skipwhite
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
38 syn keyword sdStatement PAYLOAD_TYPE PKT_LEN PRIORITY
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
39 syn keyword sdStatement SAMPLE_RATE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
40 syn keyword sdStatement TITLE TWIN
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
41 syn keyword sdStatement VERIFY
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
42
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
43 " Known Options
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
44 syn keyword sdEncoding H26L MPV MP2T MP4V-ES
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
45 syn keyword sdCoding FRAME SAMPLE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
46 syn keyword sdSource STORED LIVE
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
47
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
48 "Specials
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
49 syn keyword sdSpecial TRUE FALSE NULL
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
50 syn keyword sdDelimiter STREAM STREAM_END
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
51 syn match sdError /^search .\{257,}/
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
52
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
53
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
54 hi def link sdIP Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
55 hi def link sdHostname Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
56 hi def link sdEncoding Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
57 hi def link sdCoding Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
58 hi def link sdSource Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
59 hi def link sdComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
60 hi def link sdIPError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
61 hi def link sdError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
62 hi def link sdStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
63 hi def link sdIPSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
64 hi def link sdSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
65 hi def link sdDelimiter Delimiter
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
66
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
67
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
68 let b:current_syntax = "sd"
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
69
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
70 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
71 unlet s:cpo_save