diff options
Diffstat (limited to 'runtime/syntax/eviews.vim')
-rw-r--r-- | runtime/syntax/eviews.vim | 63 |
1 files changed, 24 insertions, 39 deletions
diff --git a/runtime/syntax/eviews.vim b/runtime/syntax/eviews.vim index aa65fda3f..7d039c212 100644 --- a/runtime/syntax/eviews.vim +++ b/runtime/syntax/eviews.vim @@ -4,19 +4,12 @@ " 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 loaded -if version < 600 - syntax clear -elseif exists("b:current_syntax") +" quit when a syntax file was already loaded +if exists("b:current_syntax") finish endif -if version >= 600 - setlocal iskeyword=@,48-57,_,. -else - set iskeyword=@,48-57,_,. -endif +setlocal iskeyword=@,48-57,_,. syn case match @@ -69,35 +62,27 @@ syn match eCurlyError /[)\]]/ contained syn 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 yet -if 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 HiLink -endif +" Only when an item doesn't have highlighting yet +command -nargs=+ HiLink hi def link <args> +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 HiLink let b:current_syntax="eviews" |