forked from aniani/vim
Updated runtime files. Remove version checks for Vim older than 6.0.
This commit is contained in:
@@ -10,11 +10,7 @@ if exists("b:current_syntax")
|
||||
endif
|
||||
|
||||
" Read the C syntax to start with
|
||||
if version < 600
|
||||
source <sfile>:p:h/c.vim
|
||||
else
|
||||
runtime! syntax/c.vim
|
||||
endif
|
||||
runtime! syntax/c.vim
|
||||
|
||||
syn keyword rpcProgram program skipnl skipwhite nextgroup=rpcProgName
|
||||
syn match rpcProgName contained "\<\i\I*\>" skipnl skipwhite nextgroup=rpcProgZone
|
||||
@@ -28,31 +24,23 @@ syn match rpcProgNmbrErr contained "=\s*0x[^23]\x*"ms=s+1
|
||||
syn match rpcPassThru "^\s*%.*$"
|
||||
|
||||
" 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_rpcgen_syntax_inits")
|
||||
if version < 508
|
||||
let did_rpcgen_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 rpcProgName rpcName
|
||||
HiLink rpcProgram rpcStatement
|
||||
HiLink rpcVersName rpcName
|
||||
HiLink rpcVersion rpcStatement
|
||||
HiLink rpcProgName rpcName
|
||||
HiLink rpcProgram rpcStatement
|
||||
HiLink rpcVersName rpcName
|
||||
HiLink rpcVersion rpcStatement
|
||||
|
||||
HiLink rpcDecl cType
|
||||
HiLink rpcPassThru cComment
|
||||
HiLink rpcDecl cType
|
||||
HiLink rpcPassThru cComment
|
||||
|
||||
HiLink rpcName Special
|
||||
HiLink rpcProcNmbr Delimiter
|
||||
HiLink rpcProgNmbrErr Error
|
||||
HiLink rpcStatement Statement
|
||||
HiLink rpcName Special
|
||||
HiLink rpcProcNmbr Delimiter
|
||||
HiLink rpcProgNmbrErr Error
|
||||
HiLink rpcStatement Statement
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
delcommand HiLink
|
||||
|
||||
let b:current_syntax = "rpcgen"
|
||||
|
||||
|
Reference in New Issue
Block a user