codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Remind3" Maintainer: Davide Alberani <da@erlug.linux.it>4" Last Change: 02 Nov 20155" Version: 0.76" URL: http://ismito.it/vim/syntax/remind.vim7"8" Remind is a sophisticated calendar and alarm program.9" You can download remind from:10" https://www.roaringpenguin.com/products/remind11"12" Changelog13" version 0.7: updated email and link14" version 0.6: added THROUGH keyword (courtesy of Ben Orchard)15 16" quit when a syntax file was already loaded17if exists("b:current_syntax")18 finish19endif20 21" shut case off.22syn case ignore23 24syn keyword remindCommands REM OMIT SET FSET UNSET25syn keyword remindExpiry UNTIL FROM SCANFROM SCAN WARN SCHED THROUGH26syn keyword remindTag PRIORITY TAG27syn keyword remindTimed AT DURATION28syn keyword remindMove ONCE SKIP BEFORE AFTER29syn keyword remindSpecial INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP COLOR30syn keyword remindRun MSG MSF RUN CAL SATISFY SPECIAL PS PSFILE SHADE MOON31syn keyword remindConditional IF ELSE ENDIF IFTRIG32syn keyword remindDebug DEBUG DUMPVARS DUMP ERRMSG FLUSH PRESERVE33syn match remindComment "#.*$"34syn region remindString start=+'+ end=+'+ skip=+\\\\\|\\'+ oneline35syn region remindString start=+"+ end=+"+ skip=+\\\\\|\\"+ oneline36syn match remindVar "\$[_a-zA-Z][_a-zA-Z0-9]*"37syn match remindSubst "%[^ ]"38syn match remindAdvanceNumber "\(\*\|+\|-\|++\|--\)[0-9]\+"39" XXX: use different separators for dates and times?40syn match remindDateSeparators "[/:@\.-]" contained41syn match remindTimes "[0-9]\{1,2}[:\.][0-9]\{1,2}" contains=remindDateSeparators42" XXX: why not match only valid dates? Ok, checking for 'Feb the 30' would43" be impossible, but at least check for valid months and times.44syn match remindDates "'[0-9]\{4}[/-][0-9]\{1,2}[/-][0-9]\{1,2}\(@[0-9]\{1,2}[:\.][0-9]\{1,2}\)\?'" contains=remindDateSeparators45" This will match trailing whitespaces that seem to break rem2ps.46" Courtesy of Michael Dunn.47syn match remindWarning display excludenl "\S\s\+$"ms=s+148 49 50 51hi def link remindCommands Function52hi def link remindExpiry Repeat53hi def link remindTag Label54hi def link remindTimed Statement55hi def link remindMove Statement56hi def link remindSpecial Include57hi def link remindRun Function58hi def link remindConditional Conditional59hi def link remindComment Comment60hi def link remindTimes String61hi def link remindString String62hi def link remindDebug Debug63hi def link remindVar Identifier64hi def link remindSubst Constant65hi def link remindAdvanceNumber Number66hi def link remindDateSeparators Comment67hi def link remindDates String68hi def link remindWarning Error69 70 71let b:current_syntax = "remind"72 73" vim: ts=8 sw=274 