remind.vim (2713B)
1 " Vim syntax file 2 " Language: Remind 3 " Maintainer: Davide Alberani <da@erlug.linux.it> 4 " Last Change: 02 Nov 2015 5 " Version: 0.7 6 " URL: http://ismito.it/vim/syntax/remind.vim 7 " 8 " Remind is a sophisticated calendar and alarm program. 9 " You can download remind from: 10 " https://www.roaringpenguin.com/products/remind 11 " 12 " Changelog 13 " version 0.7: updated email and link 14 " version 0.6: added THROUGH keyword (courtesy of Ben Orchard) 15 16 " quit when a syntax file was already loaded 17 if exists("b:current_syntax") 18 finish 19 endif 20 21 " shut case off. 22 syn case ignore 23 24 syn keyword remindCommands REM OMIT SET FSET UNSET 25 syn keyword remindExpiry UNTIL FROM SCANFROM SCAN WARN SCHED THROUGH 26 syn keyword remindTag PRIORITY TAG 27 syn keyword remindTimed AT DURATION 28 syn keyword remindMove ONCE SKIP BEFORE AFTER 29 syn keyword remindSpecial INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP COLOR 30 syn keyword remindRun MSG MSF RUN CAL SATISFY SPECIAL PS PSFILE SHADE MOON 31 syn keyword remindConditional IF ELSE ENDIF IFTRIG 32 syn keyword remindDebug DEBUG DUMPVARS DUMP ERRMSG FLUSH PRESERVE 33 syn match remindComment "#.*$" 34 syn region remindString start=+'+ end=+'+ skip=+\\\\\|\\'+ oneline 35 syn region remindString start=+"+ end=+"+ skip=+\\\\\|\\"+ oneline 36 syn match remindVar "\$[_a-zA-Z][_a-zA-Z0-9]*" 37 syn match remindSubst "%[^ ]" 38 syn match remindAdvanceNumber "\(\*\|+\|-\|++\|--\)[0-9]\+" 39 " XXX: use different separators for dates and times? 40 syn match remindDateSeparators "[/:@\.-]" contained 41 syn match remindTimes "[0-9]\{1,2}[:\.][0-9]\{1,2}" contains=remindDateSeparators 42 " XXX: why not match only valid dates? Ok, checking for 'Feb the 30' would 43 " be impossible, but at least check for valid months and times. 44 syn match remindDates "'[0-9]\{4}[/-][0-9]\{1,2}[/-][0-9]\{1,2}\(@[0-9]\{1,2}[:\.][0-9]\{1,2}\)\?'" contains=remindDateSeparators 45 " This will match trailing whitespaces that seem to break rem2ps. 46 " Courtesy of Michael Dunn. 47 syn match remindWarning display excludenl "\S\s\+$"ms=s+1 48 49 50 51 hi def link remindCommands Function 52 hi def link remindExpiry Repeat 53 hi def link remindTag Label 54 hi def link remindTimed Statement 55 hi def link remindMove Statement 56 hi def link remindSpecial Include 57 hi def link remindRun Function 58 hi def link remindConditional Conditional 59 hi def link remindComment Comment 60 hi def link remindTimes String 61 hi def link remindString String 62 hi def link remindDebug Debug 63 hi def link remindVar Identifier 64 hi def link remindSubst Constant 65 hi def link remindAdvanceNumber Number 66 hi def link remindDateSeparators Comment 67 hi def link remindDates String 68 hi def link remindWarning Error 69 70 71 let b:current_syntax = "remind" 72 73 " vim: ts=8 sw=2