Updated runtime files. Remove version checks for Vim older than 6.0.
This commit is contained in:
@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user