diff options
Diffstat (limited to 'runtime/syntax/mplayerconf.vim')
-rw-r--r-- | runtime/syntax/mplayerconf.vim | 159 |
1 files changed, 66 insertions, 93 deletions
diff --git a/runtime/syntax/mplayerconf.vim b/runtime/syntax/mplayerconf.vim index 7abe20a1d..856d8ce19 100644 --- a/runtime/syntax/mplayerconf.vim +++ b/runtime/syntax/mplayerconf.vim @@ -1,111 +1,84 @@ " Vim syntax file -" Language: mplayer(1) configuration file -" Maintainer: Nikolai Weibull <source@pcppopper.org> -" URL: http://www.pcppopper.org/vim/syntax/pcp/mplayerconf/ -" Latest Revision: 2004-05-22 -" arch-tag: c20b9381-5858-4452-b866-54e2e1891229 +" Language: mplayer(1) configuration file +" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> +" Latest Revision: 2005-06-27 -if version < 600 - syntax clear -elseif exists("b:current_syntax") +if exists("b:current_syntax") finish endif -" Set iskeyword since we need `-' (and potentially others) in keywords. -" For version 5.x: Set it globally -" For version 6.x: Set it locally -if version >= 600 - command -nargs=1 SetIsk setlocal iskeyword=<args> -else - command -nargs=1 SetIsk set iskeyword=<args> -endif -SetIsk @,48-57,- -delcommand SetIsk +let s:cpo_save = &cpo +set cpo&vim + +setlocal iskeyword=@,48-57,- -" Todo -syn keyword mplayerconfTodo contained TODO FIXME XXX NOTE +syn keyword mplayerconfTodo contained TODO FIXME XXX NOTE -" Comments -syn region mplayerconfComment display matchgroup=mplayerconfComment start='#' end='$' contains=mplayerconfTodo +syn region mplayerconfComment display matchgroup=mplayerconfComment + \ start='#' end='$' + \ contains=mplayerconfTodo,@Spell -" PreProc syn keyword mplayerconfPreProc include -" Booleans syn keyword mplayerconfBoolean yes no -" Numbers syn match mplayerconfNumber '\<\d\+\>' -" Options -syn keyword mplayerconfOption hardframedrop nomouseinput bandwidth dumpstream -syn keyword mplayerconfOption rtsp-stream-over-tcp tv overlapsub sub-bg-alpha -syn keyword mplayerconfOption subfont-outline unicode format vo edl cookies -syn keyword mplayerconfOption fps zrfd af-adv nosound audio-density -syn keyword mplayerconfOption passlogfile vobsuboutindex -syn keyword mplayerconfOption autoq autosync benchmark colorkey nocolorkey -syn keyword mplayerconfOption edlout enqueue fixed-vo framedrop h -syn keyword mplayerconfOption identify input lircconf list-options loop menu -syn keyword mplayerconfOption menu-cfg menu-root nojoystick nolirc -syn keyword mplayerconfOption nortc playlist quiet really-quiet shuffle skin -syn keyword mplayerconfOption slave softsleep speed sstep use-stdin aid alang -syn keyword mplayerconfOption audio-demuxer audiofile audiofile-cache -syn keyword mplayerconfOption cdrom-device cache cdda channels chapter -syn keyword mplayerconfOption cookies-file demuxer dumpaudio dumpfile -syn keyword mplayerconfOption dumpvideo dvbin dvd-device dvdangle forceidx -syn keyword mplayerconfOption frames hr-mp3-seek idx ipv4-only-proxy loadidx -syn keyword mplayerconfOption mc mf ni nobps noextbased passwd prefer-ipv4 -syn keyword mplayerconfOption prefer-ipv6 rawaudio rawvideo -syn keyword mplayerconfOption saveidx sb srate ss tskeepbroken tsprog tsprobe -syn keyword mplayerconfOption user user-agent vid vivo dumpjacosub -syn keyword mplayerconfOption dumpmicrodvdsub dumpmpsub dumpsami dumpsrtsub -syn keyword mplayerconfOption dumpsub ffactor flip-hebrew font forcedsubsonly -syn keyword mplayerconfOption fribidi-charset ifo noautosub osdlevel -syn keyword mplayerconfOption sid slang spuaa spualign spugauss sub -syn keyword mplayerconfOption sub-bg-color sub-demuxer sub-fuzziness -syn keyword mplayerconfOption sub-no-text-pp subalign subcc subcp subdelay -syn keyword mplayerconfOption subfile subfont-autoscale subfont-blur -syn keyword mplayerconfOption subfont-encoding subfont-osd-scale -syn keyword mplayerconfOption subfont-text-scale subfps subpos subwidth -syn keyword mplayerconfOption utf8 vobsub vobsubid abs ao aofile aop delay -syn keyword mplayerconfOption mixer nowaveheader aa bpp brightness contrast -syn keyword mplayerconfOption dfbopts display double dr dxr2 fb fbmode -syn keyword mplayerconfOption fbmodeconfig forcexv fs fsmode-dontuse fstype -syn keyword mplayerconfOption geometry guiwid hue jpeg monitor-dotclock -syn keyword mplayerconfOption monitor-hfreq monitor-vfreq monitoraspect -syn keyword mplayerconfOption nograbpointer nokeepaspect noxv ontop panscan -syn keyword mplayerconfOption rootwin saturation screenw stop-xscreensaver vm -syn keyword mplayerconfOption vsync wid xineramascreen z zrbw zrcrop zrdev -syn keyword mplayerconfOption zrhelp zrnorm zrquality zrvdec zrxdoff ac af -syn keyword mplayerconfOption afm aspect flip lavdopts noaspect noslices -syn keyword mplayerconfOption novideo oldpp pp pphelp ssf stereo sws vc vfm x -syn keyword mplayerconfOption xvidopts xy y zoom vf vop audio-delay -syn keyword mplayerconfOption audio-preload endpos ffourcc include info -syn keyword mplayerconfOption noautoexpand noskip o oac of ofps ovc -syn keyword mplayerconfOption skiplimit v vobsubout vobsuboutid -syn keyword mplayerconfOption lameopts lavcopts nuvopts xvidencopts - -" Define the default highlighting. -" For version 5.7 and earlier: only when not done already -" For version 5.8 and later: only when an item doesn't have highlighting yet -if version >= 508 || !exists("did_mplayer_syn_inits") - if version < 508 - let did_mplayer_syn_inits = 1 - command -nargs=+ HiLink hi link <args> - else - command -nargs=+ HiLink hi def link <args> - endif +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 - HiLink mplayerconfTodo Todo - HiLink mplayerconfComment Comment - HiLink mplayerconfPreProc PreProc - HiLink mplayerconfBoolean Boolean - HiLink mplayerconfNumber Number - HiLink mplayerconfOption Keyword - - delcommand HiLink -endif +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" -" vim: set sts=2 sw=2: +let &cpo = s:cpo_save +unlet s:cpo_save |