1"
2" SRT - Secure, Reliable, Transport
3" Copyright (c) 2020 Haivision Systems Inc.
4"
5" This Source Code Form is subject to the terms of the Mozilla Public
6" License, v. 2.0. If a copy of the MPL was not distributed with this
7" file, You can obtain one at http://mozilla.org/MPL/2.0/.
8"
9" This file describes MAF ("manifest") file syntax used by
10" SRT project.
11"
12
13
14if exists("b:current_syntax")
15  finish
16endif
17
18" conditionals
19syn match mafCondition  contained " - [!A-Za-z].*"hs=s+2
20
21" section
22syn match mafSection "^[A-Z][0-9A-Za-z_].*$" contains=mafCondition
23syn match mafsection "^ .*$" contains=mafCondition
24
25" comments
26syn match  mafComment		"^\s*\zs#.*$"
27syn match  mafComment		"\s\zs#.*$"
28syn match  mafComment	contained	"#.*$"
29
30
31" hilites
32
33hi def link mafComment Comment
34hi def link mafSection Statement
35hi def link mafCondition Number
36
37
38let b:current_syntax = "maf"
39