summaryrefslogtreecommitdiff
path: root/runtime/syntax/mplayerconf.vim
blob: 55f7e1a5836ebdbb8d7929836386fac0433ffdd1 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
" Vim syntax file
" Language:         mplayer(1) configuration file
" Maintainer:       Nikolai Weibull <now@bitwi.se>
" Latest Revision:  2006-04-19

if exists("b:current_syntax")
  finish
endif

let s:cpo_save = &cpo
set cpo&vim

setlocal iskeyword=@,48-57,-

syn keyword mplayerconfTodo     contained TODO FIXME XXX NOTE

syn region mplayerconfComment   display oneline start='#' end='$'
                                \ contains=mplayerconfTodo,@Spell

syn keyword mplayerconfPreProc  include

syn keyword mplayerconfBoolean  yes no

syn match   mplayerconfNumber   '\<\d\+\>'

syn keyword mplayerconfOption   hardframedrop nomouseinput bandwidth dumpstream
                                \ rtsp-stream-over-tcp tv overlapsub
                                \ sub-bg-alpha subfont-outline unicode format
                                \ vo edl cookies fps zrfd af-adv nosound
                                \ audio-density passlogfile vobsuboutindex autoq
                                \ autosync benchmark colorkey nocolorkey edlout
                                \ enqueue fixed-vo framedrop h identify input
                                \ lircconf list-options loop menu menu-cfg
                                \ menu-root nojoystick nolirc nortc playlist
                                \ quiet really-quiet shuffle skin slave
                                \ softsleep speed sstep use-stdin aid alang
                                \ audio-demuxer audiofile audiofile-cache
                                \ cdrom-device cache cdda channels chapter
                                \ cookies-file demuxer dumpaudio dumpfile
                                \ dumpvideo dvbin dvd-device dvdangle forceidx
                                \ frames hr-mp3-seek idx ipv4-only-proxy
                                \ loadidx mc mf ni nobps noextbased
                                \ passwd prefer-ipv4 prefer-ipv6 rawaudio
                                \ rawvideo saveidx sb srate ss tskeepbroken
                                \ tsprog tsprobe user user-agent vid vivo
                                \ dumpjacosub dumpmicrodvdsub dumpmpsub dumpsami
                                \ dumpsrtsub dumpsub ffactor flip-hebrew font
                                \ forcedsubsonly fribidi-charset ifo noautosub
                                \ osdlevel sid slang spuaa spualign spugauss
                                \ sub sub-bg-color sub-demuxer sub-fuzziness
                                \ sub-no-text-pp subalign subcc subcp subdelay
                                \ subfile subfont-autoscale subfont-blur
                                \ subfont-encoding subfont-osd-scale
                                \ subfont-text-scale subfps subpos subwidth
                                \ utf8 vobsub vobsubid abs ao aofile aop delay
                                \ mixer nowaveheader aa bpp brightness contrast
                                \ dfbopts display double dr dxr2 fb fbmode
                                \ fbmodeconfig forcexv fs fsmode-dontuse fstype
                                \ geometry guiwid hue jpeg monitor-dotclock
                                \ monitor-hfreq monitor-vfreq monitoraspect
                                \ nograbpointer nokeepaspect noxv ontop panscan
                                \ rootwin saturation screenw stop-xscreensaver
                                \ vm vsync wid xineramascreen z zrbw zrcrop
                                \ zrdev zrhelp zrnorm zrquality zrvdec zrxdoff
                                \ ac af afm aspect flip lavdopts noaspect
                                \ noslices novideo oldpp pp pphelp ssf stereo
                                \ sws vc vfm x xvidopts xy y zoom vf vop
                                \ audio-delay audio-preload endpos ffourcc
                                \ include info noautoexpand noskip o oac of
                                \ ofps ovc skiplimit v vobsubout vobsuboutid
                                \ lameopts lavcopts nuvopts xvidencopts

hi def link mplayerconfTodo     Todo
hi def link mplayerconfComment  Comment
hi def link mplayerconfPreProc  PreProc
hi def link mplayerconfBoolean  Boolean
hi def link mplayerconfNumber   Number
hi def link mplayerconfOption   Keyword

let b:current_syntax = "mplayerconf"

let &cpo = s:cpo_save
unlet s:cpo_save