aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ftdetect/dabmux.vim1
-rw-r--r--syntax/dabmux.vim48
2 files changed, 49 insertions, 0 deletions
diff --git a/ftdetect/dabmux.vim b/ftdetect/dabmux.vim
new file mode 100644
index 0000000..2aef713
--- /dev/null
+++ b/ftdetect/dabmux.vim
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.mux set filetype=dabmux
diff --git a/syntax/dabmux.vim b/syntax/dabmux.vim
new file mode 100644
index 0000000..92dd238
--- /dev/null
+++ b/syntax/dabmux.vim
@@ -0,0 +1,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