3 " Maintainer: Davide Alberani <alberanid@libero.it>
4 " Last Change: 10 May 2006
6 " URL: http://erlug.linux.it/~da/vim/syntax/remind.vim
8 " remind is a sophisticated reminder service; you can download remind from:
9 " http://www.roaringpenguin.com/penguin/open_source_remind.php
13 elseif exists("b:current_syntax")
20 syn keyword remindCommands REM OMIT SET FSET UNSET
21 syn keyword remindExpiry UNTIL SCANFROM SCAN WARN SCHED
22 syn keyword remindTag PRIORITY TAG
23 syn keyword remindTimed AT DURATION
24 syn keyword remindMove ONCE SKIP BEFORE AFTER
25 syn keyword remindSpecial INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP
26 syn keyword remindRun MSG MSF RUN CAL SATISFY SPECIAL PS PSFILE SHADE MOON
27 syn keyword remindConditional IF ELSE ENDIF IFTRIG
28 syn match remindComment "#.*$"
29 syn region remindString start=+'+ end=+'+ skip=+\\\\\|\\'+ oneline
30 syn region remindString start=+"+ end=+"+ skip=+\\\\\|\\"+ oneline
31 syn keyword remindDebug DEBUG DUMPVARS DUMP ERRMSG FLUSH PRESERVE
32 syn match remindVar "\$[_a-zA-Z][_a-zA-Z0-9]*"
33 syn match remindSubst "%[^ ]"
34 syn match remindAdvanceNumber "\(\*\|+\|-\|++\|--\)[0-9]\+"
35 " This will match trailing whitespaces that seem to break rem2ps.
36 " Courtesy of Michael Dunn.
37 syn match remindWarning display excludenl "\S\s\+$"ms=s+1
40 if version >= 508 || !exists("did_remind_syn_inits")
42 let did_remind_syn_inits = 1
43 command -nargs=+ HiLink hi link <args>
45 command -nargs=+ HiLink hi def link <args>
48 HiLink remindCommands Function
49 HiLink remindExpiry Repeat
50 HiLink remindTag Label
51 HiLink remindTimed Statement
52 HiLink remindMove Statement
53 HiLink remindSpecial Include
54 HiLink remindRun Function
55 HiLink remindConditional Conditional
56 HiLink remindComment Comment
57 HiLink remindString String
58 HiLink remindDebug Debug
59 HiLink remindVar Identifier
60 HiLink remindSubst Constant
61 HiLink remindAdvanceNumber Number
62 HiLink remindWarning Error
67 let b:current_syntax = "remind"