7
|
1 " Vim syntax file
|
|
2 " Language: mplayer(1) configuration file
|
|
3 " Maintainer: Nikolai Weibull <source@pcppopper.org>
|
|
4 " URL: http://www.pcppopper.org/vim/syntax/pcp/mplayerconf/
|
|
5 " Latest Revision: 2004-05-22
|
|
6 " arch-tag: c20b9381-5858-4452-b866-54e2e1891229
|
|
7
|
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14 " Set iskeyword since we need `-' (and potentially others) in keywords.
|
|
15 " For version 5.x: Set it globally
|
|
16 " For version 6.x: Set it locally
|
|
17 if version >= 600
|
|
18 command -nargs=1 SetIsk setlocal iskeyword=<args>
|
|
19 else
|
|
20 command -nargs=1 SetIsk set iskeyword=<args>
|
|
21 endif
|
|
22 SetIsk @,48-57,-
|
|
23 delcommand SetIsk
|
|
24
|
|
25 " Todo
|
|
26 syn keyword mplayerconfTodo contained TODO FIXME XXX NOTE
|
|
27
|
|
28 " Comments
|
|
29 syn region mplayerconfComment display matchgroup=mplayerconfComment start='#' end='$' contains=mplayerconfTodo
|
|
30
|
|
31 " PreProc
|
|
32 syn keyword mplayerconfPreProc include
|
|
33
|
|
34 " Booleans
|
|
35 syn keyword mplayerconfBoolean yes no
|
|
36
|
|
37 " Numbers
|
|
38 syn match mplayerconfNumber '\<\d\+\>'
|
|
39
|
|
40 " Options
|
|
41 syn keyword mplayerconfOption hardframedrop nomouseinput bandwidth dumpstream
|
|
42 syn keyword mplayerconfOption rtsp-stream-over-tcp tv overlapsub sub-bg-alpha
|
|
43 syn keyword mplayerconfOption subfont-outline unicode format vo edl cookies
|
|
44 syn keyword mplayerconfOption fps zrfd af-adv nosound audio-density
|
|
45 syn keyword mplayerconfOption passlogfile vobsuboutindex
|
|
46 syn keyword mplayerconfOption autoq autosync benchmark colorkey nocolorkey
|
|
47 syn keyword mplayerconfOption edlout enqueue fixed-vo framedrop h
|
|
48 syn keyword mplayerconfOption identify input lircconf list-options loop menu
|
|
49 syn keyword mplayerconfOption menu-cfg menu-root nojoystick nolirc
|
|
50 syn keyword mplayerconfOption nortc playlist quiet really-quiet shuffle skin
|
|
51 syn keyword mplayerconfOption slave softsleep speed sstep use-stdin aid alang
|
|
52 syn keyword mplayerconfOption audio-demuxer audiofile audiofile-cache
|
|
53 syn keyword mplayerconfOption cdrom-device cache cdda channels chapter
|
|
54 syn keyword mplayerconfOption cookies-file demuxer dumpaudio dumpfile
|
|
55 syn keyword mplayerconfOption dumpvideo dvbin dvd-device dvdangle forceidx
|
|
56 syn keyword mplayerconfOption frames hr-mp3-seek idx ipv4-only-proxy loadidx
|
|
57 syn keyword mplayerconfOption mc mf ni nobps noextbased passwd prefer-ipv4
|
|
58 syn keyword mplayerconfOption prefer-ipv6 rawaudio rawvideo
|
|
59 syn keyword mplayerconfOption saveidx sb srate ss tskeepbroken tsprog tsprobe
|
|
60 syn keyword mplayerconfOption user user-agent vid vivo dumpjacosub
|
|
61 syn keyword mplayerconfOption dumpmicrodvdsub dumpmpsub dumpsami dumpsrtsub
|
|
62 syn keyword mplayerconfOption dumpsub ffactor flip-hebrew font forcedsubsonly
|
|
63 syn keyword mplayerconfOption fribidi-charset ifo noautosub osdlevel
|
|
64 syn keyword mplayerconfOption sid slang spuaa spualign spugauss sub
|
|
65 syn keyword mplayerconfOption sub-bg-color sub-demuxer sub-fuzziness
|
|
66 syn keyword mplayerconfOption sub-no-text-pp subalign subcc subcp subdelay
|
|
67 syn keyword mplayerconfOption subfile subfont-autoscale subfont-blur
|
|
68 syn keyword mplayerconfOption subfont-encoding subfont-osd-scale
|
|
69 syn keyword mplayerconfOption subfont-text-scale subfps subpos subwidth
|
|
70 syn keyword mplayerconfOption utf8 vobsub vobsubid abs ao aofile aop delay
|
|
71 syn keyword mplayerconfOption mixer nowaveheader aa bpp brightness contrast
|
|
72 syn keyword mplayerconfOption dfbopts display double dr dxr2 fb fbmode
|
|
73 syn keyword mplayerconfOption fbmodeconfig forcexv fs fsmode-dontuse fstype
|
|
74 syn keyword mplayerconfOption geometry guiwid hue jpeg monitor-dotclock
|
|
75 syn keyword mplayerconfOption monitor-hfreq monitor-vfreq monitoraspect
|
|
76 syn keyword mplayerconfOption nograbpointer nokeepaspect noxv ontop panscan
|
|
77 syn keyword mplayerconfOption rootwin saturation screenw stop-xscreensaver vm
|
|
78 syn keyword mplayerconfOption vsync wid xineramascreen z zrbw zrcrop zrdev
|
|
79 syn keyword mplayerconfOption zrhelp zrnorm zrquality zrvdec zrxdoff ac af
|
|
80 syn keyword mplayerconfOption afm aspect flip lavdopts noaspect noslices
|
|
81 syn keyword mplayerconfOption novideo oldpp pp pphelp ssf stereo sws vc vfm x
|
|
82 syn keyword mplayerconfOption xvidopts xy y zoom vf vop audio-delay
|
|
83 syn keyword mplayerconfOption audio-preload endpos ffourcc include info
|
|
84 syn keyword mplayerconfOption noautoexpand noskip o oac of ofps ovc
|
|
85 syn keyword mplayerconfOption skiplimit v vobsubout vobsuboutid
|
|
86 syn keyword mplayerconfOption lameopts lavcopts nuvopts xvidencopts
|
|
87
|
|
88 " Define the default highlighting.
|
|
89 " For version 5.7 and earlier: only when not done already
|
|
90 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
91 if version >= 508 || !exists("did_mplayer_syn_inits")
|
|
92 if version < 508
|
|
93 let did_mplayer_syn_inits = 1
|
|
94 command -nargs=+ HiLink hi link <args>
|
|
95 else
|
|
96 command -nargs=+ HiLink hi def link <args>
|
|
97 endif
|
|
98
|
|
99 HiLink mplayerconfTodo Todo
|
|
100 HiLink mplayerconfComment Comment
|
|
101 HiLink mplayerconfPreProc PreProc
|
|
102 HiLink mplayerconfBoolean Boolean
|
|
103 HiLink mplayerconfNumber Number
|
|
104 HiLink mplayerconfOption Keyword
|
|
105
|
|
106 delcommand HiLink
|
|
107 endif
|
|
108
|
|
109 let b:current_syntax = "mplayerconf"
|
|
110
|
|
111 " vim: set sts=2 sw=2:
|