diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-30 23:26:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-30 23:26:57 +0200 |
commit | 89bcfda6834aba724d12554a34b9ed49f5789fd5 (patch) | |
tree | 2ffddcadaae9d061e38e17a09b2635ec199eb1dd /runtime/syntax/virata.vim | |
parent | 4792255eff03760dca0fd014616532e6d47db364 (diff) | |
download | vim-89bcfda6834aba724d12554a34b9ed49f5789fd5.zip |
Updated runtime files. Remove version checks for Vim older than 6.0.
Diffstat (limited to 'runtime/syntax/virata.vim')
-rw-r--r-- | runtime/syntax/virata.vim | 112 |
1 files changed, 51 insertions, 61 deletions
diff --git a/runtime/syntax/virata.vim b/runtime/syntax/virata.vim index e597b8e31..3023f13a9 100644 --- a/runtime/syntax/virata.vim +++ b/runtime/syntax/virata.vim @@ -13,10 +13,8 @@ " Setup Syntax: -if version < 600 - " Clear old syntax settings - syn clear -elseif exists("b:current_syntax") +" quit when a syntax file was already loaded +if exists("b:current_syntax") finish endif " Virata syntax is case insensitive (mostly) @@ -156,63 +154,55 @@ syn sync minlines=50 "for multiple region nesting " 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_virata_syntax_inits") - if version < 508 - let did_virata_syntax_inits = 1 - command -nargs=+ HiLink hi link <args> - else - command -nargs=+ HiLink hi def link <args> - endif - - " Sub Links: - HiLink virataDefSubstError virataPreProcError - HiLink virataDefSubst virataPreProc - HiLink virataInAlter virataOperator - HiLink virataInExec virataOperator - HiLink virataInExport virataOperator - HiLink virataInImport virataOperator - HiLink virataInInstance virataOperator - HiLink virataInMake virataOperator - HiLink virataInModule virataOperator - HiLink virataInProcess virataOperator - HiLink virataInMacAddr virataHexNumber - - " Comment Group: - HiLink virataComment Comment - HiLink virataSpclComment SpecialComment - HiLink virataInCommentTodo Todo - - " Constant Group: - HiLink virataString String - HiLink virataStringError Error - HiLink virataCharacter Character - HiLink virataSpclChar Special - HiLink virataDecNumber Number - HiLink virataHexNumber Number - HiLink virataSizeNumber Number - HiLink virataNumberError Error - - " Identifier Group: - HiLink virataIdentError Error - - " PreProc Group: - HiLink virataPreProc PreProc - HiLink virataDefine Define - HiLink virataInclude Include - HiLink virataPreCondit PreCondit - HiLink virataPreProcError Error - HiLink virataPreProcWarn Todo - - " Directive Group: - HiLink virataStatement Statement - HiLink virataCfgStatement Statement - HiLink virataOperator Operator - HiLink virataDirective Keyword - - delcommand HiLink -endif +" Only when an item doesn't have highlighting yet +command -nargs=+ HiLink hi def link <args> + +" Sub Links: +HiLink virataDefSubstError virataPreProcError +HiLink virataDefSubst virataPreProc +HiLink virataInAlter virataOperator +HiLink virataInExec virataOperator +HiLink virataInExport virataOperator +HiLink virataInImport virataOperator +HiLink virataInInstance virataOperator +HiLink virataInMake virataOperator +HiLink virataInModule virataOperator +HiLink virataInProcess virataOperator +HiLink virataInMacAddr virataHexNumber + +" Comment Group: +HiLink virataComment Comment +HiLink virataSpclComment SpecialComment +HiLink virataInCommentTodo Todo + +" Constant Group: +HiLink virataString String +HiLink virataStringError Error +HiLink virataCharacter Character +HiLink virataSpclChar Special +HiLink virataDecNumber Number +HiLink virataHexNumber Number +HiLink virataSizeNumber Number +HiLink virataNumberError Error + +" Identifier Group: +HiLink virataIdentError Error + +" PreProc Group: +HiLink virataPreProc PreProc +HiLink virataDefine Define +HiLink virataInclude Include +HiLink virataPreCondit PreCondit +HiLink virataPreProcError Error +HiLink virataPreProcWarn Todo + +" Directive Group: +HiLink virataStatement Statement +HiLink virataCfgStatement Statement +HiLink virataOperator Operator +HiLink virataDirective Keyword + +delcommand HiLink let b:current_syntax = "virata" |