diff options
Diffstat (limited to 'runtime/syntax/remind.vim')
-rw-r--r-- | runtime/syntax/remind.vim | 52 |
1 files changed, 22 insertions, 30 deletions
diff --git a/runtime/syntax/remind.vim b/runtime/syntax/remind.vim index 98064e043..8e4e55434 100644 --- a/runtime/syntax/remind.vim +++ b/runtime/syntax/remind.vim @@ -13,9 +13,8 @@ " version 0.7: updated email and link " version 0.6: added THROUGH keyword (courtesy of Ben Orchard) -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 @@ -48,35 +47,28 @@ syn match remindDates "'[0-9]\{4}[/-][0-9]\{1,2}[/-][0-9]\{1,2}\(@[0-9]\{1,2}[: syn match remindWarning display excludenl "\S\s\+$"ms=s+1 -if version >= 508 || !exists("did_remind_syn_inits") - if version < 508 - let did_remind_syn_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 remindCommands Function - HiLink remindExpiry Repeat - HiLink remindTag Label - HiLink remindTimed Statement - HiLink remindMove Statement - HiLink remindSpecial Include - HiLink remindRun Function - HiLink remindConditional Conditional - HiLink remindComment Comment - HiLink remindTimes String - HiLink remindString String - HiLink remindDebug Debug - HiLink remindVar Identifier - HiLink remindSubst Constant - HiLink remindAdvanceNumber Number - HiLink remindDateSeparators Comment - HiLink remindDates String - HiLink remindWarning Error +HiLink remindCommands Function +HiLink remindExpiry Repeat +HiLink remindTag Label +HiLink remindTimed Statement +HiLink remindMove Statement +HiLink remindSpecial Include +HiLink remindRun Function +HiLink remindConditional Conditional +HiLink remindComment Comment +HiLink remindTimes String +HiLink remindString String +HiLink remindDebug Debug +HiLink remindVar Identifier +HiLink remindSubst Constant +HiLink remindAdvanceNumber Number +HiLink remindDateSeparators Comment +HiLink remindDates String +HiLink remindWarning Error - delcommand HiLink -endif +delcommand HiLink let b:current_syntax = "remind" |