Updated runtime files. Remove version checks for Vim older than 6.0.
This commit is contained in:
@ -6,12 +6,9 @@
|
||||
" URL: http://physics.muni.cz/~yeti/download/syntax/texmf.vim
|
||||
|
||||
" Setup
|
||||
if version >= 600
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
else
|
||||
syntax clear
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn case match
|
||||
@ -45,42 +42,35 @@ syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLB
|
||||
syn match texmfBraceError "}"
|
||||
|
||||
" Define the default highlighting
|
||||
if version >= 508 || !exists("did_texmf_syntax_inits")
|
||||
if version < 508
|
||||
let did_texmf_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
|
||||
HiLink texmfComment Comment
|
||||
HiLink texmfTodo Todo
|
||||
HiLink texmfComment Comment
|
||||
HiLink texmfTodo Todo
|
||||
|
||||
HiLink texmfPassedParameter texmfVariable
|
||||
HiLink texmfVariable Identifier
|
||||
HiLink texmfPassedParameter texmfVariable
|
||||
HiLink texmfVariable Identifier
|
||||
|
||||
HiLink texmfNumber Number
|
||||
HiLink texmfString String
|
||||
HiLink texmfNumber Number
|
||||
HiLink texmfString String
|
||||
|
||||
HiLink texmfLHSStart texmfLHS
|
||||
HiLink texmfLHSVariable texmfLHS
|
||||
HiLink texmfLHSDot texmfLHS
|
||||
HiLink texmfLHS Type
|
||||
HiLink texmfLHSStart texmfLHS
|
||||
HiLink texmfLHSVariable texmfLHS
|
||||
HiLink texmfLHSDot texmfLHS
|
||||
HiLink texmfLHS Type
|
||||
|
||||
HiLink texmfEquals Normal
|
||||
HiLink texmfEquals Normal
|
||||
|
||||
HiLink texmfBraceBrace texmfDelimiter
|
||||
HiLink texmfComma texmfDelimiter
|
||||
HiLink texmfColons texmfDelimiter
|
||||
HiLink texmfDelimiter Preproc
|
||||
HiLink texmfBraceBrace texmfDelimiter
|
||||
HiLink texmfComma texmfDelimiter
|
||||
HiLink texmfColons texmfDelimiter
|
||||
HiLink texmfDelimiter Preproc
|
||||
|
||||
HiLink texmfDoubleExclam Statement
|
||||
HiLink texmfSpecial Special
|
||||
HiLink texmfDoubleExclam Statement
|
||||
HiLink texmfSpecial Special
|
||||
|
||||
HiLink texmfBraceError texmfError
|
||||
HiLink texmfError Error
|
||||
HiLink texmfBraceError texmfError
|
||||
HiLink texmfError Error
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
delcommand HiLink
|
||||
|
||||
let b:current_syntax = "texmf"
|
||||
|
||||
Reference in New Issue
Block a user