annotate runtime/syntax/eviews.vim @ 7933:1f0743f4f88f v7.4.1262

commit https://github.com/vim/vim/commit/a07fec9c85d062acd9dd433a2e681770f459ba47 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 5 21:04:08 2016 +0100 patch 7.4.1262 Problem: The channel callback is not invoked. Solution: Make a list of pending callbacks.
author Christian Brabandt <cb@256bit.org>
date Fri, 05 Feb 2016 21:15:04 +0100
parents 8cd729851562
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
625
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
1 " Vim syntax file
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
2 " Language: Eviews (http://www.eviews.com)
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
3 " Maintainer: Vaidotas Zemlys <zemlys@gmail.com>
856
8cd729851562 updated for version 7.0g
vimboss
parents: 625
diff changeset
4 " Last Change: 2006 Apr 30
625
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
5 " Filenames: *.prg
856
8cd729851562 updated for version 7.0g
vimboss
parents: 625
diff changeset
6 " URL: http://uosis.mif.vu.lt/~zemlys/vim-syntax/eviews.vim
625
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
9 if version < 600
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
10 syntax clear
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
12 finish
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
13 endif
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
14
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
15 if version >= 600
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
16 setlocal iskeyword=@,48-57,_,.
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
17 else
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
18 set iskeyword=@,48-57,_,.
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
19 endif
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
20
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
21 syn case match
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
22
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
23 " Comment
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
24 syn match eComment /\'.*/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
25
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
26 " Constant
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
27 " string enclosed in double quotes
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
28 syn region eString start=/"/ skip=/\\\\\|\\"/ end=/"/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
29 " number with no fractional part or exponent
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
30 syn match eNumber /\d\+/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
31 " floating point number with integer and fractional parts and optional exponent
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
32 syn match eFloat /\d\+\.\d*\([Ee][-+]\=\d\+\)\=/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
33 " floating point number with no integer part and optional exponent
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
34 syn match eFloat /\.\d\+\([Ee][-+]\=\d\+\)\=/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
35 " floating point number with no fractional part and optional exponent
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
36 syn match eFloat /\d\+[Ee][-+]\=\d\+/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
37
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
38 " Identifier
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
39 " identifier with leading letter and optional following keyword characters
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
40 syn match eIdentifier /\a\k*/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
41
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
42 " Eviews Programing Language
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
43 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
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
44
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
45 " Eviews Objects, Views and Procedures
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
46 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
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
47
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
48
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
49 " Standard Eviews Commands
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
50 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
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
51
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
52 " Constant Identifier
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
53 syn match eConstant /\!\k*/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
54 " String Identifier
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
55 syn match eStringId /%\k*/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
56 " Command Identifier
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
57 syn match eCommand /@\k*/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
58
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
59 " Special
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
60 syn match eDelimiter /[,;:]/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
61
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
62 " Error
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
63 syn region eRegion matchgroup=Delimiter start=/(/ matchgroup=Delimiter end=/)/ transparent contains=ALLBUT,rError,rBraceError,rCurlyError
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
64 syn region eRegion matchgroup=Delimiter start=/{/ matchgroup=Delimiter end=/}/ transparent contains=ALLBUT,rError,rBraceError,rParenError
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
65 syn region eRegion matchgroup=Delimiter start=/\[/ matchgroup=Delimiter end=/]/ transparent contains=ALLBUT,rError,rCurlyError,rParenError
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
66 syn match eError /[)\]}]/
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
67 syn match eBraceError /[)}]/ contained
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
68 syn match eCurlyError /[)\]]/ contained
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
69 syn match eParenError /[\]}]/ contained
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
70
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
71 " Define the default highlighting.
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
72 " For version 5.7 and earlier: only when not done already
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
73 " For version 5.8 and later: only when an item doesn't have highlighting yet
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
74 if version >= 508 || !exists("did_r_syn_inits")
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
75 if version < 508
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
76 let did_r_syn_inits = 1
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
77 command -nargs=+ HiLink hi link <args>
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
78 else
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
79 command -nargs=+ HiLink hi def link <args>
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
80 endif
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
81 HiLink eComment Comment
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
82 HiLink eConstant Identifier
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
83 HiLink eStringId Identifier
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
84 HiLink eCommand Type
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
85 HiLink eString String
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
86 HiLink eNumber Number
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
87 HiLink eBoolean Boolean
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
88 HiLink eFloat Float
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
89 HiLink eConditional Conditional
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
90 HiLink eProgLang Statement
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
91 HiLink eOVP Statement
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
92 HiLink eStdCmd Statement
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
93 HiLink eIdentifier Normal
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
94 HiLink eDelimiter Delimiter
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
95 HiLink eError Error
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
96 HiLink eBraceError Error
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
97 HiLink eCurlyError Error
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
98 HiLink eParenError Error
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
99 delcommand HiLink
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
100 endif
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
101
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
102 let b:current_syntax="eviews"
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
103
81fe2ccc1207 updated for version 7.0179
vimboss
parents:
diff changeset
104 " vim: ts=8 sw=2