14770d09aSBram Moolenaar" Vim syntax file 24770d09aSBram Moolenaar" Language: Eviews (http://www.eviews.com) 34770d09aSBram Moolenaar" Maintainer: Vaidotas Zemlys <[email protected]> 4c9b4b05bSBram Moolenaar" Last Change: 2006 Apr 30 54770d09aSBram Moolenaar" Filenames: *.prg 64770d09aSBram Moolenaar" URL: http://uosis.mif.vu.lt/~zemlys/vim-syntax/eviews.vim 789bcfda6SBram Moolenaar" quit when a syntax file was already loaded 889bcfda6SBram Moolenaarif exists("b:current_syntax") 94770d09aSBram Moolenaar finish 104770d09aSBram Moolenaarendif 114770d09aSBram Moolenaar 124770d09aSBram Moolenaarsetlocal iskeyword=@,48-57,_,. 134770d09aSBram Moolenaar 144770d09aSBram Moolenaarsyn case match 154770d09aSBram Moolenaar 164770d09aSBram Moolenaar" Comment 174770d09aSBram Moolenaarsyn match eComment /\'.*/ 184770d09aSBram Moolenaar 194770d09aSBram Moolenaar" Constant 204770d09aSBram Moolenaar" string enclosed in double quotes 214770d09aSBram Moolenaarsyn region eString start=/"/ skip=/\\\\\|\\"/ end=/"/ 224770d09aSBram Moolenaar" number with no fractional part or exponent 234770d09aSBram Moolenaarsyn match eNumber /\d\+/ 244770d09aSBram Moolenaar" floating point number with integer and fractional parts and optional exponent 254770d09aSBram Moolenaarsyn match eFloat /\d\+\.\d*\([Ee][-+]\=\d\+\)\=/ 264770d09aSBram Moolenaar" floating point number with no integer part and optional exponent 274770d09aSBram Moolenaarsyn match eFloat /\.\d\+\([Ee][-+]\=\d\+\)\=/ 284770d09aSBram Moolenaar" floating point number with no fractional part and optional exponent 294770d09aSBram Moolenaarsyn match eFloat /\d\+[Ee][-+]\=\d\+/ 304770d09aSBram Moolenaar 314770d09aSBram Moolenaar" Identifier 324770d09aSBram Moolenaar" identifier with leading letter and optional following keyword characters 334770d09aSBram Moolenaarsyn match eIdentifier /\a\k*/ 344770d09aSBram Moolenaar 354770d09aSBram Moolenaar" Eviews Programing Language 364770d09aSBram Moolenaarsyn 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 374770d09aSBram Moolenaar 384770d09aSBram Moolenaar" Eviews Objects, Views and Procedures 394770d09aSBram Moolenaarsyn keyword eOVP alpha coef equation graph group link logl matrix model pool rowvector sample scalar series sspace sym system table text valmap var vector 404770d09aSBram Moolenaar 414770d09aSBram Moolenaar 424770d09aSBram Moolenaar" Standard Eviews Commands 434770d09aSBram Moolenaarsyn 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 444770d09aSBram Moolenaar 454770d09aSBram Moolenaar" Constant Identifier 464770d09aSBram Moolenaarsyn match eConstant /\!\k*/ 474770d09aSBram Moolenaar" String Identifier 484770d09aSBram Moolenaarsyn match eStringId /%\k*/ 494770d09aSBram Moolenaar" Command Identifier 504770d09aSBram Moolenaarsyn match eCommand /@\k*/ 514770d09aSBram Moolenaar 524770d09aSBram Moolenaar" Special 534770d09aSBram Moolenaarsyn match eDelimiter /[,;:]/ 544770d09aSBram Moolenaar 554770d09aSBram Moolenaar" Error 564770d09aSBram Moolenaarsyn region eRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError 574770d09aSBram Moolenaarsyn region eRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenError 584770d09aSBram Moolenaarsyn region eRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenError 594770d09aSBram Moolenaarsyn match eError /[)\]}]/ 604770d09aSBram Moolenaarsyn match eBraceError /[)}]/ contained 614770d09aSBram Moolenaarsyn match eCurlyError /[)\]]/ contained 624770d09aSBram Moolenaarsyn match eParenError /[\]}]/ contained 634770d09aSBram Moolenaar 644770d09aSBram Moolenaar" Define the default highlighting. 6589bcfda6SBram Moolenaar" Only when an item doesn't have highlighting yet 66*f37506f6SBram Moolenaarhi def link eComment Comment 67*f37506f6SBram Moolenaarhi def link eConstant Identifier 68*f37506f6SBram Moolenaarhi def link eStringId Identifier 69*f37506f6SBram Moolenaarhi def link eCommand Type 70*f37506f6SBram Moolenaarhi def link eString String 71*f37506f6SBram Moolenaarhi def link eNumber Number 72*f37506f6SBram Moolenaarhi def link eBoolean Boolean 73*f37506f6SBram Moolenaarhi def link eFloat Float 74*f37506f6SBram Moolenaarhi def link eConditional Conditional 75*f37506f6SBram Moolenaarhi def link eProgLang Statement 76*f37506f6SBram Moolenaarhi def link eOVP Statement 77*f37506f6SBram Moolenaarhi def link eStdCmd Statement 78*f37506f6SBram Moolenaarhi def link eIdentifier Normal 79*f37506f6SBram Moolenaarhi def link eDelimiter Delimiter 80*f37506f6SBram Moolenaarhi def link eError Error 81*f37506f6SBram Moolenaarhi def link eBraceError Error 82*f37506f6SBram Moolenaarhi def link eCurlyError Error 83*f37506f6SBram Moolenaarhi def link eParenError Error 844770d09aSBram Moolenaar 854770d09aSBram Moolenaarlet b:current_syntax="eviews" 864770d09aSBram Moolenaar 874770d09aSBram Moolenaar" vim: ts=8 sw=2 88