codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Quake[1-3] configuration file3" Previous Maintainer: Nikolai Weibull <now@bitwi.se>4" Latest Revision: 2007-06-175" quake_is_quake1 - the syntax is to be used for quake1 configs6" quake_is_quake2 - the syntax is to be used for quake2 configs7" quake_is_quake3 - the syntax is to be used for quake3 configs8" Credits: Tomasz Kalkosinski wrote the original quake3Colors stuff9 10if exists("b:current_syntax")11 finish12endif13 14let s:cpo_save = &cpo15set cpo&vim16 17setlocal iskeyword+=-,+18 19syn keyword quakeTodo contained TODO FIXME XXX NOTE20 21syn region quakeComment display oneline start='//' end='$' end=';'22 \ keepend contains=quakeTodo,@Spell23 24syn region quakeString display oneline start=+"+ skip=+\\\\\|\\"+25 \ end=+"\|$+ contains=quakeNumbers,26 \ @quakeCommands,@quake3Colors27 28syn case ignore29 30syn match quakeNumbers display transparent '\<-\=\d\|\.\d'31 \ contains=quakeNumber,quakeFloat,32 \ quakeOctalError,quakeOctal33syn match quakeNumber contained display '\d\+\>'34syn match quakeFloat contained display '\d\+\.\d*'35syn match quakeFloat contained display '\.\d\+\>'36 37if exists("quake_is_quake1") || exists("quake_is_quake2")38 syn match quakeOctal contained display '0\o\+\>'39 \ contains=quakeOctalZero40 syn match quakeOctalZero contained display '\<0'41 syn match quakeOctalError contained display '0\o*[89]\d*'42endif43 44syn cluster quakeCommands contains=quakeCommand,quake1Command,45 \ quake12Command,Quake2Command,Quake23Command,46 \ Quake3Command47 48syn keyword quakeCommand +attack +back +forward +left +lookdown +lookup49syn keyword quakeCommand +mlook +movedown +moveleft +moveright +moveup50syn keyword quakeCommand +right +speed +strafe -attack -back bind51syn keyword quakeCommand bindlist centerview clear connect cvarlist dir52syn keyword quakeCommand disconnect dumpuser echo error exec -forward53syn keyword quakeCommand god heartbeat joy_advancedupdate kick kill54syn keyword quakeCommand killserver -left -lookdown -lookup map55syn keyword quakeCommand messagemode messagemode2 -mlook modellist56syn keyword quakeCommand -movedown -moveleft -moveright -moveup play57syn keyword quakeCommand quit rcon reconnect record -right say say_team58syn keyword quakeCommand screenshot serverinfo serverrecord serverstop59syn keyword quakeCommand set sizedown sizeup snd_restart soundinfo60syn keyword quakeCommand soundlist -speed spmap status -strafe stopsound61syn keyword quakeCommand toggleconsole unbind unbindall userinfo pause62syn keyword quakeCommand vid_restart viewpos wait weapnext weapprev63 64if exists("quake_is_quake1")65 syn keyword quake1Command sv66endif67 68if exists("quake_is_quake1") || exists("quake_is_quake2")69 syn keyword quake12Command +klook alias cd impulse link load save70 syn keyword quake12Command timerefresh changing info loading71 syn keyword quake12Command pingservers playerlist players score72endif73 74if exists("quake_is_quake2")75 syn keyword quake2Command cmd demomap +use condump download drop gamemap76 syn keyword quake2Command give gun_model setmaster sky sv_maplist wave77 syn keyword quake2Command cmdlist gameversiona gun_next gun_prev invdrop78 syn keyword quake2Command inven invnext invnextp invnextw invprev79 syn keyword quake2Command invprevp invprevw invuse menu_addressbook80 syn keyword quake2Command menu_credits menu_dmoptions menu_game81 syn keyword quake2Command menu_joinserver menu_keys menu_loadgame82 syn keyword quake2Command menu_main menu_multiplayer menu_options83 syn keyword quake2Command menu_playerconfig menu_quit menu_savegame84 syn keyword quake2Command menu_startserver menu_video85 syn keyword quake2Command notarget precache prog togglechat vid_front86 syn keyword quake2Command weaplast87endif88 89if exists("quake_is_quake2") || exists("quake_is_quake3")90 syn keyword quake23Command imagelist modellist path z_stats91endif92 93if exists("quake_is_quake3")94 syn keyword quake3Command +info +scores +zoom addbot arena banClient95 syn keyword quake3Command banUser callteamvote callvote changeVectors96 syn keyword quake3Command cinematic clientinfo clientkick cmd cmdlist97 syn keyword quake3Command condump configstrings crash cvar_restart devmap98 syn keyword quake3Command fdir follow freeze fs_openedList Fs_pureList99 syn keyword quake3Command Fs_referencedList gfxinfo globalservers100 syn keyword quake3Command hunk_stats in_restart -info levelshot101 syn keyword quake3Command loaddeferred localservers map_restart mem_info102 syn keyword quake3Command messagemode3 messagemode4 midiinfo model music103 syn keyword quake3Command modelist net_restart nextframe nextskin noclip104 syn keyword quake3Command notarget ping prevframe prevskin reset restart105 syn keyword quake3Command s_disable_a3d s_enable_a3d s_info s_list s_stop106 syn keyword quake3Command scanservers -scores screenshotJPEG sectorlist107 syn keyword quake3Command serverstatus seta setenv sets setu setviewpos108 syn keyword quake3Command shaderlist showip skinlist spdevmap startOribt109 syn keyword quake3Command stats stopdemo stoprecord systeminfo togglemenu110 syn keyword quake3Command tcmd team teamtask teamvote tell tell_attacker111 syn keyword quake3Command tell_target testgun testmodel testshader toggle112 syn keyword quake3Command touchFile vminfo vmprofile vmtest vosay113 syn keyword quake3Command vosay_team vote votell vsay vsay_team vstr114 syn keyword quake3Command vtaunt vtell vtell_attacker vtell_target weapon115 syn keyword quake3Command writeconfig -zoom116 syn match quake3Command display "\<[+-]button\(\d\|1[0-4]\)\>"117endif118 119if exists("quake_is_quake3")120 syn cluster quake3Colors contains=quake3Red,quake3Green,quake3Yellow,121 \ quake3Blue,quake3Cyan,quake3Purple,quake3White,122 \ quake3Orange,quake3Grey,quake3Black,quake3Shadow123 124 syn region quake3Red contained start=+\^1+hs=e+1 end=+[$^"\n]+he=e-1125 syn region quake3Green contained start=+\^2+hs=e+1 end=+[$^"\n]+he=e-1126 syn region quake3Yellow contained start=+\^3+hs=e+1 end=+[$^"\n]+he=e-1127 syn region quake3Blue contained start=+\^4+hs=e+1 end=+[$^"\n]+he=e-1128 syn region quake3Cyan contained start=+\^5+hs=e+1 end=+[$^"\n]+he=e-1129 syn region quake3Purple contained start=+\^6+hs=e+1 end=+[$^"\n]+he=e-1130 syn region quake3White contained start=+\^7+hs=e+1 end=+[$^"\n]+he=e-1131 syn region quake3Orange contained start=+\^8+hs=e+1 end=+[$^\"\n]+he=e-1132 syn region quake3Grey contained start=+\^9+hs=e+1 end=+[$^"\n]+he=e-1133 syn region quake3Black contained start=+\^0+hs=e+1 end=+[$^"\n]+he=e-1134 syn region quake3Shadow contained start=+\^[Xx]+hs=e+1 end=+[$^"\n]+he=e-1135endif136 137hi def link quakeComment Comment138hi def link quakeTodo Todo139hi def link quakeString String140hi def link quakeNumber Number141hi def link quakeOctal Number142hi def link quakeOctalZero PreProc143hi def link quakeFloat Number144hi def link quakeOctalError Error145hi def link quakeCommand quakeCommands146hi def link quake1Command quakeCommands147hi def link quake12Command quakeCommands148hi def link quake2Command quakeCommands149hi def link quake23Command quakeCommands150hi def link quake3Command quakeCommands151hi def link quakeCommands Keyword152 153if exists("quake_is_quake3")154 hi quake3Red ctermfg=Red guifg=Red155 hi quake3Green ctermfg=Green guifg=Green156 hi quake3Yellow ctermfg=Yellow guifg=Yellow157 hi quake3Blue ctermfg=Blue guifg=Blue158 hi quake3Cyan ctermfg=Cyan guifg=Cyan159 hi quake3Purple ctermfg=DarkMagenta guifg=Purple160 hi quake3White ctermfg=White guifg=White161 hi quake3Black ctermfg=Black guifg=Black162 hi quake3Orange ctermfg=Brown guifg=Orange163 hi quake3Grey ctermfg=LightGrey guifg=LightGrey164 hi quake3Shadow cterm=underline gui=underline165endif166 167let b:current_syntax = "quake"168 169let &cpo = s:cpo_save170unlet s:cpo_save171 