Updated runtime files. Remove version checks for Vim older than 6.0.
This commit is contained in:
@ -9,11 +9,8 @@
|
||||
"
|
||||
|
||||
|
||||
" 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
|
||||
|
||||
@ -66,49 +63,41 @@ syn match scilabOverload "%[A-Za-z0-9?!_#$]\+_[A-Za-z0-9?!_#$]\+"
|
||||
|
||||
|
||||
" 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_scilab_syntax_inits")
|
||||
if version < 508
|
||||
let did_scilab_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
|
||||
HiLink scilabStatement Statement
|
||||
HiLink scilabFunction Keyword
|
||||
HiLink scilabPredicate Keyword
|
||||
HiLink scilabKeyword Keyword
|
||||
HiLink scilabDebug Debug
|
||||
HiLink scilabRepeat Repeat
|
||||
HiLink scilabConditional Conditional
|
||||
HiLink scilabMultiplex Conditional
|
||||
HiLink scilabStatement Statement
|
||||
HiLink scilabFunction Keyword
|
||||
HiLink scilabPredicate Keyword
|
||||
HiLink scilabKeyword Keyword
|
||||
HiLink scilabDebug Debug
|
||||
HiLink scilabRepeat Repeat
|
||||
HiLink scilabConditional Conditional
|
||||
HiLink scilabMultiplex Conditional
|
||||
|
||||
HiLink scilabConstant Constant
|
||||
HiLink scilabBoolean Boolean
|
||||
HiLink scilabConstant Constant
|
||||
HiLink scilabBoolean Boolean
|
||||
|
||||
HiLink scilabDelimiter Delimiter
|
||||
HiLink scilabMlistAccess Delimiter
|
||||
HiLink scilabComparison Operator
|
||||
HiLink scilabLogical Operator
|
||||
HiLink scilabAssignment Operator
|
||||
HiLink scilabArithmetic Operator
|
||||
HiLink scilabRange Operator
|
||||
HiLink scilabLineContinuation Underlined
|
||||
HiLink scilabTransposition Operator
|
||||
HiLink scilabDelimiter Delimiter
|
||||
HiLink scilabMlistAccess Delimiter
|
||||
HiLink scilabComparison Operator
|
||||
HiLink scilabLogical Operator
|
||||
HiLink scilabAssignment Operator
|
||||
HiLink scilabArithmetic Operator
|
||||
HiLink scilabRange Operator
|
||||
HiLink scilabLineContinuation Underlined
|
||||
HiLink scilabTransposition Operator
|
||||
|
||||
HiLink scilabTodo Todo
|
||||
HiLink scilabComment Comment
|
||||
HiLink scilabTodo Todo
|
||||
HiLink scilabComment Comment
|
||||
|
||||
HiLink scilabNumber Number
|
||||
HiLink scilabString String
|
||||
HiLink scilabNumber Number
|
||||
HiLink scilabString String
|
||||
|
||||
HiLink scilabIdentifier Identifier
|
||||
HiLink scilabOverload Special
|
||||
HiLink scilabIdentifier Identifier
|
||||
HiLink scilabOverload Special
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
delcommand HiLink
|
||||
|
||||
let b:current_syntax = "scilab"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user