104 lines · 5.3 KB · Text
RawDownload
" Vim syntax file" Language:	Eviews (http://www.eviews.com)" Maintainer:	Vaidotas Zemlys <zemlys@gmail.com>" Last Change:  2006 Apr 30" Filenames:	*.prg" URL:	http://uosis.mif.vu.lt/~zemlys/vim-syntax/eviews.vim" For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600  syntax clearelseif exists("b:current_syntax")  finishendif if version >= 600  setlocal iskeyword=@,48-57,_,.else  set iskeyword=@,48-57,_,.endif syn case match " Commentsyn match eComment /\'.*/ " Constant" string enclosed in double quotessyn region eString start=/"/ skip=/\\\\\|\\"/ end=/"/" number with no fractional part or exponentsyn match eNumber /\d\+/" floating point number with integer and fractional parts and optional exponentsyn match eFloat /\d\+\.\d*\([Ee][-+]\=\d\+\)\=/" floating point number with no integer part and optional exponentsyn match eFloat /\.\d\+\([Ee][-+]\=\d\+\)\=/" floating point number with no fractional part and optional exponentsyn match eFloat /\d\+[Ee][-+]\=\d\+/ " Identifier" identifier with leading letter and optional following keyword characterssyn match eIdentifier /\a\k*/ " Eviews Programing Languagesyn 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 " Eviews Objects, Views and Proceduressyn keyword eOVP alpha coef equation graph group link logl matrix model pool rowvector sample scalar series sspace sym system table text valmap var vector  " Standard Eviews Commandssyn 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  " Constant Identifiersyn match eConstant /\!\k*/" String Identifiersyn match eStringId /%\k*/" Command Identifiersyn match eCommand /@\k*/ " Specialsyn match eDelimiter /[,;:]/ " Errorsyn region eRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyErrorsyn region eRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenErrorsyn region eRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenErrorsyn match eError      /[)\]}]/syn match eBraceError /[)}]/ containedsyn match eCurlyError /[)\]]/ containedsyn match eParenError /[\]}]/ contained " 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 yetif version >= 508 || !exists("did_r_syn_inits")  if version < 508    let did_r_syn_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif  HiLink eComment     Comment  HiLink eConstant    Identifier  HiLink eStringId    Identifier  HiLink eCommand     Type  HiLink eString      String  HiLink eNumber      Number  HiLink eBoolean     Boolean  HiLink eFloat       Float  HiLink eConditional Conditional  HiLink eProgLang    Statement  HiLink eOVP	      Statement  HiLink eStdCmd      Statement  HiLink eIdentifier  Normal  HiLink eDelimiter   Delimiter  HiLink eError       Error  HiLink eBraceError  Error  HiLink eCurlyError  Error  HiLink eParenError  Error  delcommand HiLinkendif let b:current_syntax="eviews" " vim: ts=8 sw=2