Mercurial > vim
comparison runtime/syntax/eviews.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 8cd729851562 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
2 " Language: Eviews (http://www.eviews.com) | 2 " Language: Eviews (http://www.eviews.com) |
3 " Maintainer: Vaidotas Zemlys <zemlys@gmail.com> | 3 " Maintainer: Vaidotas Zemlys <zemlys@gmail.com> |
4 " Last Change: 2006 Apr 30 | 4 " Last Change: 2006 Apr 30 |
5 " Filenames: *.prg | 5 " Filenames: *.prg |
6 " URL: http://uosis.mif.vu.lt/~zemlys/vim-syntax/eviews.vim | 6 " URL: http://uosis.mif.vu.lt/~zemlys/vim-syntax/eviews.vim |
7 " For version 5.x: Clear all syntax items | 7 " quit when a syntax file was already loaded |
8 " For version 6.x: Quit when a syntax file was already loaded | 8 if exists("b:current_syntax") |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | 9 finish |
13 endif | 10 endif |
14 | 11 |
15 if version >= 600 | 12 setlocal iskeyword=@,48-57,_,. |
16 setlocal iskeyword=@,48-57,_,. | |
17 else | |
18 set iskeyword=@,48-57,_,. | |
19 endif | |
20 | 13 |
21 syn case match | 14 syn case match |
22 | 15 |
23 " Comment | 16 " Comment |
24 syn match eComment /\'.*/ | 17 syn match eComment /\'.*/ |
67 syn match eBraceError /[)}]/ contained | 60 syn match eBraceError /[)}]/ contained |
68 syn match eCurlyError /[)\]]/ contained | 61 syn match eCurlyError /[)\]]/ contained |
69 syn match eParenError /[\]}]/ contained | 62 syn match eParenError /[\]}]/ contained |
70 | 63 |
71 " Define the default highlighting. | 64 " Define the default highlighting. |
72 " For version 5.7 and earlier: only when not done already | 65 " Only when an item doesn't have highlighting yet |
73 " For version 5.8 and later: only when an item doesn't have highlighting yet | 66 command -nargs=+ HiLink hi def link <args> |
74 if version >= 508 || !exists("did_r_syn_inits") | 67 HiLink eComment Comment |
75 if version < 508 | 68 HiLink eConstant Identifier |
76 let did_r_syn_inits = 1 | 69 HiLink eStringId Identifier |
77 command -nargs=+ HiLink hi link <args> | 70 HiLink eCommand Type |
78 else | 71 HiLink eString String |
79 command -nargs=+ HiLink hi def link <args> | 72 HiLink eNumber Number |
80 endif | 73 HiLink eBoolean Boolean |
81 HiLink eComment Comment | 74 HiLink eFloat Float |
82 HiLink eConstant Identifier | 75 HiLink eConditional Conditional |
83 HiLink eStringId Identifier | 76 HiLink eProgLang Statement |
84 HiLink eCommand Type | 77 HiLink eOVP Statement |
85 HiLink eString String | 78 HiLink eStdCmd Statement |
86 HiLink eNumber Number | 79 HiLink eIdentifier Normal |
87 HiLink eBoolean Boolean | 80 HiLink eDelimiter Delimiter |
88 HiLink eFloat Float | 81 HiLink eError Error |
89 HiLink eConditional Conditional | 82 HiLink eBraceError Error |
90 HiLink eProgLang Statement | 83 HiLink eCurlyError Error |
91 HiLink eOVP Statement | 84 HiLink eParenError Error |
92 HiLink eStdCmd Statement | 85 delcommand HiLink |
93 HiLink eIdentifier Normal | |
94 HiLink eDelimiter Delimiter | |
95 HiLink eError Error | |
96 HiLink eBraceError Error | |
97 HiLink eCurlyError Error | |
98 HiLink eParenError Error | |
99 delcommand HiLink | |
100 endif | |
101 | 86 |
102 let b:current_syntax="eviews" | 87 let b:current_syntax="eviews" |
103 | 88 |
104 " vim: ts=8 sw=2 | 89 " vim: ts=8 sw=2 |