annotate runtime/syntax/mplayerconf.vim @ 117:d4ea645c7748 v7.0041

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