mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
Updated runtime files. Remove version checks for Vim older than 6.0.
This commit is contained in:
@@ -8,11 +8,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
|
||||
|
||||
@@ -21,11 +18,7 @@ endif
|
||||
let fortran_free_source=1
|
||||
|
||||
" Load FORTRAN syntax file
|
||||
if version < 600
|
||||
source <sfile>:p:h/fortran.vim
|
||||
else
|
||||
runtime! syntax/fortran.vim
|
||||
endif
|
||||
runtime! syntax/fortran.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
|
||||
@@ -136,40 +129,32 @@ syn sync match trasysSync grouphere trasysComment "^HEADER DOCUMENTATION DATA"
|
||||
|
||||
|
||||
" 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_trasys_syntax_inits")
|
||||
if version < 508
|
||||
let did_trasys_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 trasysOptions Special
|
||||
HiLink trasysSurface Special
|
||||
HiLink trasysSurfaceType Constant
|
||||
HiLink trasysSurfaceArgs Constant
|
||||
HiLink trasysArgs Constant
|
||||
HiLink trasysOperations Statement
|
||||
HiLink trasysSubRoutine Statement
|
||||
HiLink trassyPrcsrSegm PreProc
|
||||
HiLink trasysIdentifier Identifier
|
||||
HiLink trasysComment Comment
|
||||
HiLink trasysHeader Typedef
|
||||
HiLink trasysMacro Macro
|
||||
HiLink trasysInteger Number
|
||||
HiLink trasysFloat Float
|
||||
HiLink trasysScientific Float
|
||||
HiLink trasysOptions Special
|
||||
HiLink trasysSurface Special
|
||||
HiLink trasysSurfaceType Constant
|
||||
HiLink trasysSurfaceArgs Constant
|
||||
HiLink trasysArgs Constant
|
||||
HiLink trasysOperations Statement
|
||||
HiLink trasysSubRoutine Statement
|
||||
HiLink trassyPrcsrSegm PreProc
|
||||
HiLink trasysIdentifier Identifier
|
||||
HiLink trasysComment Comment
|
||||
HiLink trasysHeader Typedef
|
||||
HiLink trasysMacro Macro
|
||||
HiLink trasysInteger Number
|
||||
HiLink trasysFloat Float
|
||||
HiLink trasysScientific Float
|
||||
|
||||
HiLink trasysBlank SpecialChar
|
||||
HiLink trasysBlank SpecialChar
|
||||
|
||||
HiLink trasysEndData Macro
|
||||
HiLink trasysEndData Macro
|
||||
|
||||
HiLink trasysTodo Todo
|
||||
HiLink trasysTodo Todo
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
delcommand HiLink
|
||||
|
||||
|
||||
let b:current_syntax = "trasys"
|
||||
|
Reference in New Issue
Block a user