7
|
1 " Vim syntax file
|
6530
|
2 " Language: mplayer(1) configuration file
|
|
3 " Maintainer: Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com>
|
|
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
5 " Latest Revision: 2015-01-24
|
7
|
6
|
375
|
7 if exists("b:current_syntax")
|
7
|
8 finish
|
|
9 endif
|
|
10
|
375
|
11 let s:cpo_save = &cpo
|
|
12 set cpo&vim
|
|
13
|
1621
|
14 setlocal iskeyword+=-
|
7
|
15
|
375
|
16 syn keyword mplayerconfTodo contained TODO FIXME XXX NOTE
|
7
|
17
|
389
|
18 syn region mplayerconfComment display oneline start='#' end='$'
|
375
|
19 \ contains=mplayerconfTodo,@Spell
|
7
|
20
|
|
21 syn keyword mplayerconfPreProc include
|
|
22
|
6530
|
23 syn keyword mplayerconfBoolean yes no true false
|
7
|
24
|
|
25 syn match mplayerconfNumber '\<\d\+\>'
|
|
26
|
375
|
27 syn 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
|
6530
|
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
|
|
111 syn region mplayerconfString display oneline start=+"+ end=+"+
|
|
112 syn region mplayerconfString display oneline start=+'+ end=+'+
|
|
113
|
|
114 syn region mplayerconfProfile display oneline start='^\s*\[' end='\]'
|
7
|
115
|
375
|
116 hi def link mplayerconfTodo Todo
|
|
117 hi def link mplayerconfComment Comment
|
|
118 hi def link mplayerconfPreProc PreProc
|
|
119 hi def link mplayerconfBoolean Boolean
|
|
120 hi def link mplayerconfNumber Number
|
|
121 hi def link mplayerconfOption Keyword
|
6530
|
122 hi def link mplayerconfString String
|
|
123 hi def link mplayerconfProfile Special
|
7
|
124
|
|
125 let b:current_syntax = "mplayerconf"
|
|
126
|
375
|
127 let &cpo = s:cpo_save
|
|
128 unlet s:cpo_save
|