codekingpro/portable-devtools
114k
1" Vim syntax file2" Previous Maintainer: Nikolai Weibull <now@bitwi.se>3" Latest Revision: 2007-06-174 5if exists("b:current_syntax")6 finish7endif8 9let s:cpo_save = &cpo10set cpo&vim11 12setlocal iskeyword+=-13 14syn keyword cmusrcTodo contained TODO FIXME XXX NOTE15 16syn match cmusrcComment contained display '^\s*#.*$'17 18syn match cmusrcBegin display '^'19 \ nextgroup=cmusrcKeyword,cmusrcComment20 \ skipwhite21 22syn keyword cmusrcKeyword contained add23 \ nextgroup=cmusrcAddSwitches,cmusrcURI24 \ skipwhite25 26syn match cmusrcAddSwitches contained display '-[lpqQ]'27 \ nextgroup=cmusrcURI28 \ skipwhite29 30syn match cmusrcURI contained display '.\+'31 32syn keyword cmusrcKeyword contained bind33 \ nextgroup=cmusrcBindSwitches,34 \ cmusrcBindContext35 \ skipwhite36 37syn match cmusrcBindSwitches contained display '-[f]'38 \ nextgroup=cmusrcBindContext39 \ skipwhite40 41syn keyword cmusrcBindContext contained common library playlist queue42 \ browser filters43 \ nextgroup=cmusrcBindKey44 \ skipwhite45 46syn match cmusrcBindKey contained display '\S\+'47 \ nextgroup=cmusrcKeyword48 \ skipwhite49 50syn keyword cmusrcKeyword contained browser-up colorscheme echo factivate51 \ filter invert player-next player-pause52 \ player-play player-prev player-stop quit53 \ refresh run search-next search-prev shuffle54 \ unmark win-activate win-add-l win-add-p55 \ win-add-Q win-add-q win-bottom win-down56 \ win-mv-after win-mv-before win-next57 \ win-page-down win-page-up win-remove58 \ win-sel-cur win-toggle win-top win-up59 \ win-update60 61syn keyword cmusrcKeyword contained cd62 \ nextgroup=cmusrcDirectory63 \ skipwhite64 65syn match cmusrcDirectory contained display '.\+'66 67syn keyword cmusrcKeyword contained clear68 \ nextgroup=cmusrcClearSwitches69 70syn match cmusrcClearSwitches contained display '-[lpq]'71 72syn keyword cmusrcKeyword contained fset73 \ nextgroup=cmusrcFSetName74 \ skipwhite75 76syn match cmusrcFSetName contained display '[^=]\+'77 \ nextgroup=cmusrcFSetEq78 79syn match cmusrcFSetEq contained display '='80 \ nextgroup=cmusrcFilterExpr81 82syn match cmusrcFilterExpr contained display '.\+'83 84syn keyword cmusrcKeyword contained load85 \ nextgroup=cmusrcLoadSwitches,cmusrcURI86 \ skipwhite87 88syn match cmusrcLoadSwitches contained display '-[lp]'89 \ nextgroup=cmusrcURI90 \ skipwhite91 92syn keyword cmusrcKeyword contained mark93 \ nextgroup=cmusrcFilterExpr94 95syn keyword cmusrcKeyword contained save96 \ nextgroup=cmusrcSaveSwitches,cmusrcFile97 \ skipwhite98 99syn match cmusrcSaveSwitches contained display '-[lp]'100 \ nextgroup=cmusrcFile101 \ skipwhite102 103syn match cmusrcFile contained display '.\+'104 105syn keyword cmusrcKeyword contained seek106 \ nextgroup=cmusrcSeekOffset107 \ skipwhite108 109syn match cmusrcSeekOffset contained display110 \ '[+-]\=\%(\d\+[mh]\=\|\%(\%(0\=\d\|[1-5]\d\):\)\=\%(0\=\d\|[1-5]\d\):\%(0\=\d\|[1-5]\d\)\)'111 112syn keyword cmusrcKeyword contained set113 \ nextgroup=cmusrcOption114 \ skipwhite115 116syn keyword cmusrcOption contained auto_reshuffle confirm_run117 \ continue play_library play_sorted repeat118 \ show_hidden show_remaining_time shuffle119 \ nextgroup=cmusrcSetTest,cmusrcOptEqBoolean120 121syn match cmusrcSetTest contained display '?'122 123syn match cmusrcOptEqBoolean contained display '='124 \ nextgroup=cmusrcOptBoolean125 126syn keyword cmusrcOptBoolean contained true false127 128syn keyword cmusrcOption contained aaa_mode129 \ nextgroup=cmusrcOptEqAAA130 131syn match cmusrcOptEqAAA contained display '='132 \ nextgroup=cmusrcOptAAA133 134syn keyword cmusrcOptAAA contained all artist album135 136syn keyword cmusrcOption contained buffer_seconds137 \ nextgroup=cmusrcOptEqNumber138 139syn match cmusrcOptEqNumber contained display '='140 \ nextgroup=cmusrcOptNumber141 142syn match cmusrcOptNumber contained display '\d\+'143 144syn keyword cmusrcOption contained altformat_current altformat_playlist145 \ altformat_title altformat_trackwin146 \ format_current format_playlist format_title147 \ format_trackwin148 \ nextgroup=cmusrcOptEqFormat149 150syn match cmusrcOptEqFormat contained display '='151 \ nextgroup=cmusrcOptFormat152 153syn match cmusrcOptFormat contained display '.\+'154 \ contains=cmusrcFormatSpecial155 156syn match cmusrcFormatSpecial contained display '%[0-]*\d*[alDntgydfF=%]'157 158syn keyword cmusrcOption contained color_cmdline_bg color_cmdline_fg159 \ color_error color_info color_separator160 \ color_statusline_bg color_statusline_fg161 \ color_titleline_bg color_titleline_fg162 \ color_win_bg color_win_cur163 \ color_win_cur_sel_bg color_win_cur_sel_fg164 \ color_win_dir color_win_fg165 \ color_win_inactive_cur_sel_bg166 \ color_win_inactive_cur_sel_fg167 \ color_win_inactive_sel_bg168 \ color_win_inactive_sel_fg169 \ color_win_sel_bg color_win_sel_fg170 \ color_win_title_bg color_win_title_fg171 \ nextgroup=cmusrcOptEqColor172 173syn match cmusrcOptEqColor contained display '='174 \ nextgroup=@cmusrcOptColor175 176syn cluster cmusrcOptColor contains=cmusrcOptColorName,cmusrcOptColorValue177 178syn keyword cmusrcOptColorName contained default black red green yellow blue179 \ magenta cyan gray darkgray lightred lightred180 \ lightgreen lightyellow lightblue lightmagenta181 \ lightcyan white182 183syn match cmusrcOptColorValue contained display184 \ '-1\|0*\%(\d\|[1-9]\d\|1\d\d\|2\%([0-4]\d\|5[0-5]\)\)'185 186syn keyword cmusrcOption contained id3_default_charset output_plugin187 \ status_display_program188 \ nextgroup=cmusrcOptEqString189 190syn match cmusrcOption contained191 \ '\%(dsp\|mixer\)\.\%(alsa\|oss\|sun\)\.\%(channel\|device\)'192 \ nextgroup=cmusrcOptEqString193 194syn match cmusrcOption contained195 \ 'dsp\.ao\.\%(buffer_size\|driver\|wav_counter\|wav_dir\)'196 \ nextgroup=cmusrcOptEqString197 198syn match cmusrcOptEqString contained display '='199 \ nextgroup=cmusrcOptString200 201syn match cmusrcOptString contained display '.\+'202 203syn keyword cmusrcOption contained lib_sort pl_sort204 \ nextgroup=cmusrcOptEqSortKeys205 206syn match cmusrcOptEqSortKeys contained display '='207 \ nextgroup=cmusrcOptSortKeys208 209syn keyword cmusrcOptSortKeys contained artist album title tracknumber210 \ discnumber date genre filename211 \ nextgroup=cmusrcOptSortKeys212 \ skipwhite213 214syn keyword cmusrcKeyword contained showbind215 \ nextgroup=cmusrcSBindContext216 \ skipwhite217 218syn keyword cmusrcSBindContext contained common library playlist queue219 \ browser filters220 \ nextgroup=cmusrcSBindKey221 \ skipwhite222 223syn match cmusrcSBindKey contained display '\S\+'224 225syn keyword cmusrcKeyword contained toggle226 \ nextgroup=cmusrcTogglableOpt227 \ skipwhite228 229syn keyword cmusrcTogglableOpt contained auto_reshuffle aaa_mode230 \ confirm_run continue play_library play_sorted231 \ repeat show_hidden show_remaining_time shuffle232 233syn keyword cmusrcKeyword contained unbind234 \ nextgroup=cmusrcUnbindSwitches,235 \ cmusrcSBindContext236 \ skipwhite237 238syn match cmusrcUnbindSwitches contained display '-[f]'239 \ nextgroup=cmusrcSBindContext240 \ skipwhite241 242syn keyword cmusrcKeyword contained view243 \ nextgroup=cmusrcView244 \ skipwhite245 246syn keyword cmusrcView contained library playlist queue browser filters247syn match cmusrcView contained display '[1-6]'248 249syn keyword cmusrcKeyword contained vol250 \ nextgroup=cmusrcVolume1251 \ skipwhite252 253syn match cmusrcVolume1 contained display '[+-]\=\d\+%'254 \ nextgroup=cmusrcVolume2255 \ skipwhite256 257syn match cmusrcVolume2 contained display '[+-]\=\d\+%'258 259hi def link cmusrcTodo Todo260hi def link cmusrcComment Comment261hi def link cmusrcKeyword Keyword262hi def link cmusrcSwitches Special263hi def link cmusrcAddSwitches cmusrcSwitches264hi def link cmusrcURI Normal265hi def link cmusrcBindSwitches cmusrcSwitches266hi def link cmusrcContext Type267hi def link cmusrcBindContext cmusrcContext268hi def link cmusrcKey String269hi def link cmusrcBindKey cmusrcKey270hi def link cmusrcDirectory Normal271hi def link cmusrcClearSwitches cmusrcSwitches272hi def link cmusrcFSetName PreProc273hi def link cmusrcEq Normal274hi def link cmusrcFSetEq cmusrcEq275hi def link cmusrcFilterExpr Normal276hi def link cmusrcLoadSwitches cmusrcSwitches277hi def link cmusrcSaveSwitches cmusrcSwitches278hi def link cmusrcFile Normal279hi def link cmusrcSeekOffset Number280hi def link cmusrcOption PreProc281hi def link cmusrcSetTest Normal282hi def link cmusrcOptBoolean Boolean283hi def link cmusrcOptEqAAA cmusrcEq284hi def link cmusrcOptAAA Identifier285hi def link cmusrcOptEqNumber cmusrcEq286hi def link cmusrcOptNumber Number287hi def link cmusrcOptEqFormat cmusrcEq288hi def link cmusrcOptFormat String289hi def link cmusrcFormatSpecial SpecialChar290hi def link cmusrcOptEqColor cmusrcEq291hi def link cmusrcOptColor Normal292hi def link cmusrcOptColorName cmusrcOptColor293hi def link cmusrcOptColorValue cmusrcOptColor294hi def link cmusrcOptEqString cmusrcEq295hi def link cmusrcOptString Normal296hi def link cmusrcOptEqSortKeys cmusrcEq297hi def link cmusrcOptSortKeys Identifier298hi def link cmusrcSBindContext cmusrcContext299hi def link cmusrcSBindKey cmusrcKey300hi def link cmusrcTogglableOpt cmusrcOption301hi def link cmusrcUnbindSwitches cmusrcSwitches302hi def link cmusrcView Normal303hi def link cmusrcVolume1 Number304hi def link cmusrcVolume2 Number305 306let b:current_syntax = "cmusrc"307 308let &cpo = s:cpo_save309unlet s:cpo_save310 