1" Vim syntax file
2" Language:             mplayer(1) configuration file
3" Maintainer:           Dmitri Vereshchagin <[email protected]>
4" Previous Maintainer:  Nikolai Weibull <[email protected]>
5" Latest Revision:      2015-01-24
6
7if exists("b:current_syntax")
8  finish
9endif
10
11let s:cpo_save = &cpo
12set cpo&vim
13
14setlocal iskeyword+=-
15
16syn keyword mplayerconfTodo     contained TODO FIXME XXX NOTE
17
18syn region mplayerconfComment   display oneline start='#' end='$'
19                                \ contains=mplayerconfTodo,@Spell
20
21syn keyword mplayerconfPreProc  include
22
23syn keyword mplayerconfBoolean  yes no true false
24
25syn match   mplayerconfNumber   '\<\d\+\>'
26
27syn keyword mplayerconfOption   hardframedrop nomouseinput bandwidth dumpstream
28                                \ rtsp-stream-over-tcp tv overlapsub
29                                \ sub-bg-alpha subfont-outline unicode format
30                                \ vo edl cookies fps zrfd af-adv nosound
31                                \ audio-density passlogfile vobsuboutindex autoq
32                                \ autosync benchmark colorkey nocolorkey edlout
33                                \ enqueue fixed-vo framedrop h identify input
34                                \ lircconf list-options loop menu menu-cfg
35                                \ menu-root nojoystick nolirc nortc playlist
36                                \ quiet really-quiet shuffle skin slave
37                                \ softsleep speed sstep use-stdin aid alang
38                                \ audio-demuxer audiofile audiofile-cache
39                                \ cdrom-device cache cdda channels chapter
40                                \ cookies-file demuxer dumpaudio dumpfile
41                                \ dumpvideo dvbin dvd-device dvdangle forceidx
42                                \ frames hr-mp3-seek idx ipv4-only-proxy
43                                \ loadidx mc mf ni nobps noextbased
44                                \ passwd prefer-ipv4 prefer-ipv6 rawaudio
45                                \ rawvideo saveidx sb srate ss tskeepbroken
46                                \ tsprog tsprobe user user-agent vid vivo
47                                \ dumpjacosub dumpmicrodvdsub dumpmpsub dumpsami
48                                \ dumpsrtsub dumpsub ffactor flip-hebrew font
49                                \ forcedsubsonly fribidi-charset ifo noautosub
50                                \ osdlevel sid slang spuaa spualign spugauss
51                                \ sub sub-bg-color sub-demuxer sub-fuzziness
52                                \ sub-no-text-pp subalign subcc subcp subdelay
53                                \ subfile subfont-autoscale subfont-blur
54                                \ subfont-encoding subfont-osd-scale
55                                \ subfont-text-scale subfps subpos subwidth
56                                \ utf8 vobsub vobsubid abs ao aofile aop delay
57                                \ mixer nowaveheader aa bpp brightness contrast
58                                \ dfbopts display double dr dxr2 fb fbmode
59                                \ fbmodeconfig forcexv fs fsmode-dontuse fstype
60                                \ geometry guiwid hue jpeg monitor-dotclock
61                                \ monitor-hfreq monitor-vfreq monitoraspect
62                                \ nograbpointer nokeepaspect noxv ontop panscan
63                                \ rootwin saturation screenw stop-xscreensaver
64                                \ vm vsync wid xineramascreen z zrbw zrcrop
65                                \ zrdev zrhelp zrnorm zrquality zrvdec zrxdoff
66                                \ ac af afm aspect flip lavdopts noaspect
67                                \ noslices novideo oldpp pp pphelp ssf stereo
68                                \ sws vc vfm x xvidopts xy y zoom vf vop
69                                \ audio-delay audio-preload endpos ffourcc
70                                \ include info noautoexpand noskip o oac of
71                                \ ofps ovc skiplimit v vobsubout vobsuboutid
72                                \ lameopts lavcopts nuvopts xvidencopts a52drc
73                                \ adapter af-add af-clr af-del af-pre
74                                \ allow-dangerous-playlist-parsing ass
75                                \ ass-border-color ass-bottom-margin ass-color
76                                \ ass-font-scale ass-force-style ass-hinting
77                                \ ass-line-spacing ass-styles ass-top-margin
78                                \ ass-use-margins ausid bluray-angle
79                                \ bluray-device border border-pos-x border-pos-y
80                                \ cache-min cache-seek-min capture codecpath
81                                \ codecs-file correct-pts crash-debug
82                                \ doubleclick-time dvd-speed edl-backward-delay
83                                \ edl-start-pts embeddedfonts fafmttag
84                                \ field-dominance fontconfig force-avi-aspect
85                                \ force-key-frames frameno-file fullscreen gamma
86                                \ gui gui-include gui-wid heartbeat-cmd
87                                \ heartbeat-interval hr-edl-seek
88                                \ http-header-fields idle ignore-start
89                                \ key-fifo-size list-properties menu-chroot
90                                \ menu-keepdir menu-startup mixer-channel
91                                \ monitor-orientation monitorpixelaspect
92                                \ mouse-movements msgcharset msgcolor msglevel
93                                \ msgmodule name noar nocache noconfig
94                                \ noconsolecontrols nocorrect-pts nodouble
95                                \ noedl-start-pts noencodedups
96                                \ noflip-hebrew-commas nogui noidx noodml
97                                \ nostop-xscreensaver nosub noterm-osd
98                                \ osd-duration osd-fractions panscanrange
99                                \ pausing playing-msg priority profile
100                                \ progbar-align psprobe pvr radio referrer
101                                \ refreshrate reuse-socket rtc rtc-device
102                                \ rtsp-destination rtsp-port
103                                \ rtsp-stream-over-http screenh show-profile
104                                \ softvol softvol-max sub-paths subfont
105                                \ term-osd-esc title tvscan udp-ip udp-master
106                                \ udp-port udp-seek-threshold udp-slave
107                                \ unrarexec use-filedir-conf use-filename-title
108                                \ vf-add vf-clr vf-del vf-pre volstep volume
109                                \ zrhdec zrydoff
110
111syn region  mplayerconfString   display oneline start=+"+ end=+"+
112syn region  mplayerconfString   display oneline start=+'+ end=+'+
113
114syn region  mplayerconfProfile  display oneline start='^\s*\[' end='\]'
115
116hi def link mplayerconfTodo     Todo
117hi def link mplayerconfComment  Comment
118hi def link mplayerconfPreProc  PreProc
119hi def link mplayerconfBoolean  Boolean
120hi def link mplayerconfNumber   Number
121hi def link mplayerconfOption   Keyword
122hi def link mplayerconfString   String
123hi def link mplayerconfProfile  Special
124
125let b:current_syntax = "mplayerconf"
126
127let &cpo = s:cpo_save
128unlet s:cpo_save
129