diff options
Diffstat (limited to 'runtime/syntax/trasys.vim')
-rw-r--r-- | runtime/syntax/trasys.vim | 73 |
1 files changed, 29 insertions, 44 deletions
diff --git a/runtime/syntax/trasys.vim b/runtime/syntax/trasys.vim index cfecc1c1f..1e7f75c35 100644 --- a/runtime/syntax/trasys.vim +++ b/runtime/syntax/trasys.vim @@ -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 - - 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 trasysEndData Macro - - HiLink trasysTodo Todo - - delcommand HiLink -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 trasysBlank SpecialChar + +HiLink trasysEndData Macro + +HiLink trasysTodo Todo + +delcommand HiLink let b:current_syntax = "trasys" |