aboutsummaryrefslogtreecommitdiffstats
path: root/syntax/dabmux.vim
blob: 92dd23829d98f3a1ce0a4fd3bf5016093c1e3b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
" Vim syntax file for ODR-DabMux, which is actually the
" Boost Property Tree INFO format.
" Language:	odr-dabmux configuration file
" Maintainer:	Matthias P. Braendli <matthias@mpb.li
" Updaters:
" URL:		http://opendigitalradio.org
" Changes:	(mpb) created, using javascript as template
" Last Change:	2014 Feb 14: created

if !exists("main_syntax")
  if version < 600
    syntax clear
  elseif exists("b:current_syntax")
    finish
  endif
  let main_syntax = 'dabmux'
elseif exists("b:current_syntax") && b:current_syntax == "dabmux"
  finish
endif


syn keyword odrDabMuxCommentTodo      TODO FIXME XXX TBD
syn match   odrDabMuxLineComment      ";.*" contains=@Spell,odrDabMuxCommentTodo

syn match   odrDabMuxSpecialCharacter "'\\.'"
syn match   odrDabMuxNumber	       "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"

syn keyword odrDabMuxReserved		general remotecontrol ensemble services subchannels components outputs 

syn keyword odrDabMuxFunction	function
syn match   odrDabMuxBraces	"[{}]"

syn sync fromstart
syn sync maxlines=100

command -nargs=+ HiLink hi def link <args>
HiLink odrDabMuxLineComment		Comment
HiLink odrDabMuxCommentTodo		Todo
HiLink odrDabMuxSpecial		Special
HiLink odrDabMuxSpecialCharacter	odrDabMuxSpecial
HiLink odrDabMuxNumber		Value
HiLink odrDabMuxReserved		Keyword
HiLink odrDabMuxFunction		Function
HiLink odrDabMuxBraces		Function

delcommand HiLink

" vim: ts=8