eviews.vim (5004B)
1 " Vim syntax file 2 " Language: Eviews (http://www.eviews.com) 3 " Maintainer: Vaidotas Zemlys <zemlys@gmail.com> 4 " Last Change: 2006 Apr 30 5 " Filenames: *.prg 6 " URL: http://uosis.mif.vu.lt/~zemlys/vim-syntax/eviews.vim 7 " quit when a syntax file was already loaded 8 if exists("b:current_syntax") 9 finish 10 endif 11 12 setlocal iskeyword=@,48-57,_,. 13 14 syn case match 15 16 " Comment 17 syn match eComment /\'.*/ 18 19 " Constant 20 " string enclosed in double quotes 21 syn region eString start=/"/ skip=/\\\\\|\\"/ end=/"/ 22 " number with no fractional part or exponent 23 syn match eNumber /\d\+/ 24 " floating point number with integer and fractional parts and optional exponent 25 syn match eFloat /\d\+\.\d*\([Ee][-+]\=\d\+\)\=/ 26 " floating point number with no integer part and optional exponent 27 syn match eFloat /\.\d\+\([Ee][-+]\=\d\+\)\=/ 28 " floating point number with no fractional part and optional exponent 29 syn match eFloat /\d\+[Ee][-+]\=\d\+/ 30 31 " Identifier 32 " identifier with leading letter and optional following keyword characters 33 syn match eIdentifier /\a\k*/ 34 35 " Eviews Programing Language 36 syn keyword eProgLang @date else endif @errorcount @evpath exitloop for if @isobject next poff pon return statusline step stop @temppath then @time to @toc wend while include call subroutine endsub and or 37 38 " Eviews Objects, Views and Procedures 39 syn keyword eOVP alpha coef equation graph group link logl matrix model pool rowvector sample scalar series sspace sym system table text valmap var vector 40 41 42 " Standard Eviews Commands 43 syn keyword eStdCmd 3sls add addassign addinit addtext align alpha append arch archtest area arlm arma arroots auto axis bar bdstest binary block boxplot boxplotby bplabel cause ccopy cd cdfplot cellipse censored cfetch checkderivs chow clabel cleartext close coef coefcov coint comment control copy cor correl correlsq count cov create cross data datelabel dates db dbcopy dbcreate dbdelete dbopen dbpack dbrebuild dbrename dbrepair decomp define delete derivs describe displayname do draw driconvert drop dtable ec edftest endog eqs equation errbar exclude exit expand fetch fill fiml fit forecast freeze freq frml garch genr gmm grads graph group hconvert hfetch hilo hist hlabel hpf impulse jbera kdensity kerfit label laglen legend line linefit link linkto load logit logl ls makecoint makederivs makeendog makefilter makegarch makegrads makegraph makegroup makelimits makemodel makeregs makeresids makesignals makestates makestats makesystem map matrix means merge metafile ml model msg name nnfit open options ordered output override pageappend pagecontract pagecopy pagecreate pagedelete pageload pagerename pagesave pageselect pagestack pagestruct pageunstack param pcomp pie pool predict print probit program qqplot qstats range read rename representations resample reset residcor residcov resids results rls rndint rndseed rowvector run sample save scalar scale scat scatmat scenario seas seasplot series set setbpelem setcell setcolwidth setconvert setelem setfillcolor setfont setformat setheight setindent setjust setline setlines setmerge settextcolor setwidth sheet show signalgraphs smooth smpl solve solveopt sort spec spike sspace statby statefinal stategraphs stateinit stats statusline stomna store structure sur svar sym system table template testadd testbtw testby testdrop testexog testfit testlags teststat text tic toc trace tramoseats tsls unlink update updatecoefs uroot usage valmap var vars vector wald wfcreate wfopen wfsave wfselect white wls workfile write wtsls x11 x12 xy xyline xypair 44 45 " Constant Identifier 46 syn match eConstant /\!\k*/ 47 " String Identifier 48 syn match eStringId /%\k*/ 49 " Command Identifier 50 syn match eCommand /@\k*/ 51 52 " Special 53 syn match eDelimiter /[,;:]/ 54 55 " Error 56 syn region eRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError 57 syn region eRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenError 58 syn region eRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenError 59 syn match eError /[)\]}]/ 60 syn match eBraceError /[)}]/ contained 61 syn match eCurlyError /[)\]]/ contained 62 syn match eParenError /[\]}]/ contained 63 64 " Define the default highlighting. 65 " Only when an item doesn't have highlighting yet 66 hi def link eComment Comment 67 hi def link eConstant Identifier 68 hi def link eStringId Identifier 69 hi def link eCommand Type 70 hi def link eString String 71 hi def link eNumber Number 72 hi def link eBoolean Boolean 73 hi def link eFloat Float 74 hi def link eConditional Conditional 75 hi def link eProgLang Statement 76 hi def link eOVP Statement 77 hi def link eStdCmd Statement 78 hi def link eIdentifier Normal 79 hi def link eDelimiter Delimiter 80 hi def link eError Error 81 hi def link eBraceError Error 82 hi def link eCurlyError Error 83 hi def link eParenError Error 84 85 let b:current_syntax="eviews" 86 87 " vim: ts=8 sw=2