diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-02-01 01:25:10 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-02-01 01:25:10 -0200 |
commit | 6b9187673ee62d11042832f938913f15131592a7 (patch) | |
tree | 9e70016667efe273a72ab351aafaddbdb099e123 /modules/vim/vim.dot.link/syntax/remind.vim | |
parent | 25235935e6c90557a4d6791c8d8f3a5cdf89681a (diff) | |
download | dotfiles-6b9187673ee62d11042832f938913f15131592a7.tar.gz dotfiles-6b9187673ee62d11042832f938913f15131592a7.tar.bz2 |
Adding metadot script
Diffstat (limited to 'modules/vim/vim.dot.link/syntax/remind.vim')
-rw-r--r-- | modules/vim/vim.dot.link/syntax/remind.vim | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/modules/vim/vim.dot.link/syntax/remind.vim b/modules/vim/vim.dot.link/syntax/remind.vim new file mode 100644 index 0000000..d220f75 --- /dev/null +++ b/modules/vim/vim.dot.link/syntax/remind.vim @@ -0,0 +1,79 @@ +" Vim syntax file +" Language: Remind +" Maintainer: Davide Alberani <alberanid@libero.it> +" Last Change: 25 Jun 2007 +" Version: 0.4 +" URL: http://erlug.linux.it/~da/vim/syntax/remind.vim +" +" remind is a sophisticated reminder service +" you can download remind from: +" http://www.roaringpenguin.com/penguin/open_source_remind.php + +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif + +" shut case off +syn case ignore + +syn keyword remindCommands REM OMIT SET FSET UNSET +syn keyword remindExpiry UNTIL FROM SCANFROM SCAN WARN SCHED +syn keyword remindTag PRIORITY TAG +syn keyword remindTimed AT DURATION +syn keyword remindMove ONCE SKIP BEFORE AFTER +syn keyword remindSpecial INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP COLOR +syn keyword remindRun MSG MSF RUN CAL SATISFY SPECIAL PS PSFILE SHADE MOON +syn keyword remindConditional IF ELSE ENDIF IFTRIG +syn keyword remindDebug DEBUG DUMPVARS DUMP ERRMSG FLUSH PRESERVE +syn match remindComment "#.*$" +syn region remindString start=+'+ end=+'+ skip=+\\\\\|\\'+ oneline +syn region remindString start=+"+ end=+"+ skip=+\\\\\|\\"+ oneline +syn match remindVar "\$[_a-zA-Z][_a-zA-Z0-9]*" +syn match remindSubst "%[^ ]" +syn match remindAdvanceNumber "\(\*\|+\|-\|++\|--\)[0-9]\+" +" XXX: divide separators used for dates from the ones used by times? +syn match remindDateSeparators "[/:@\.-]" contained +syn match remindTimes "[0-9]\{1,2}[:\.][0-9]\{1,2}" contains=remindDateSeparators +" TODO: why not match only valid dates? (ok, checking for 02/29 would be +" impossible, but at least check for valid months and times). +syn match remindDates "'[0-9]\{4}[/-][0-9]\{1,2}[/-][0-9]\{1,2}\(@[0-9]\{1,2}[:\.][0-9]\{1,2}\)\?'" contains=remindDateSeparators +" This will match trailing whitespaces that seem to broke rem2ps. +" Courtesy of Michael Dunn. +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 + + 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 remindDateSeparators Comment + HiLink remindDates String + HiLink remindTimes String + HiLink remindString String + HiLink remindDebug Debug + HiLink remindVar Identifier + HiLink remindSubst Constant + HiLink remindAdvanceNumber Number + HiLink remindWarning Error + + delcommand HiLink +endif + +let b:current_syntax = "remind" + +" vim: ts=8 sw=2 |