Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 80 lines (70 sloc) 2.777 kB
e5c6ef7 updated for version 7.0001
vimboss authored
1 " Vim syntax file
2 " Language: Remind
0496d46 updated for version 7.1a
vimboss authored
3 " Maintainer: Davide Alberani <alberanid@libero.it>
4895774 Update runtime files.
Bram Moolenaar authored
4 " Last Change: 18 Sep 2009
5 " Version: 0.5
0496d46 updated for version 7.1a
vimboss authored
6 " URL: http://erlug.linux.it/~da/vim/syntax/remind.vim
e5c6ef7 updated for version 7.0001
vimboss authored
7 "
4895774 Update runtime files.
Bram Moolenaar authored
8 " remind is a sophisticated reminder service
9 " you can download remind from:
10 " http://www.roaringpenguin.com/penguin/open_source_remind.php
e5c6ef7 updated for version 7.0001
vimboss authored
11
12 if version < 600
13 syntax clear
14 elseif exists("b:current_syntax")
15 finish
16 endif
17
4895774 Update runtime files.
Bram Moolenaar authored
18 " shut case off.
e5c6ef7 updated for version 7.0001
vimboss authored
19 syn case ignore
20
21 syn keyword remindCommands REM OMIT SET FSET UNSET
4895774 Update runtime files.
Bram Moolenaar authored
22 syn keyword remindExpiry UNTIL FROM SCANFROM SCAN WARN SCHED
e5c6ef7 updated for version 7.0001
vimboss authored
23 syn keyword remindTag PRIORITY TAG
24 syn keyword remindTimed AT DURATION
25 syn keyword remindMove ONCE SKIP BEFORE AFTER
4895774 Update runtime files.
Bram Moolenaar authored
26 syn keyword remindSpecial INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP COLOR
e5c6ef7 updated for version 7.0001
vimboss authored
27 syn keyword remindRun MSG MSF RUN CAL SATISFY SPECIAL PS PSFILE SHADE MOON
28 syn keyword remindConditional IF ELSE ENDIF IFTRIG
4895774 Update runtime files.
Bram Moolenaar authored
29 syn keyword remindDebug DEBUG DUMPVARS DUMP ERRMSG FLUSH PRESERVE
e5c6ef7 updated for version 7.0001
vimboss authored
30 syn match remindComment "#.*$"
31 syn region remindString start=+'+ end=+'+ skip=+\\\\\|\\'+ oneline
32 syn region remindString start=+"+ end=+"+ skip=+\\\\\|\\"+ oneline
33 syn match remindVar "\$[_a-zA-Z][_a-zA-Z0-9]*"
34 syn match remindSubst "%[^ ]"
35 syn match remindAdvanceNumber "\(\*\|+\|-\|++\|--\)[0-9]\+"
4895774 Update runtime files.
Bram Moolenaar authored
36 " XXX: use different separators for dates and times?
37 syn match remindDateSeparators "[/:@\.-]" contained
38 syn match remindTimes "[0-9]\{1,2}[:\.][0-9]\{1,2}" contains=remindDateSeparators
39 " XXX: why not match only valid dates? Ok, checking for 'Feb the 30' would
40 " be impossible, but at least check for valid months and times.
41 syn match remindDates "'[0-9]\{4}[/-][0-9]\{1,2}[/-][0-9]\{1,2}\(@[0-9]\{1,2}[:\.][0-9]\{1,2}\)\?'" contains=remindDateSeparators
0496d46 updated for version 7.1a
vimboss authored
42 " This will match trailing whitespaces that seem to break rem2ps.
43 " Courtesy of Michael Dunn.
44 syn match remindWarning display excludenl "\S\s\+$"ms=s+1
45
e5c6ef7 updated for version 7.0001
vimboss authored
46
47 if version >= 508 || !exists("did_remind_syn_inits")
48 if version < 508
49 let did_remind_syn_inits = 1
50 command -nargs=+ HiLink hi link <args>
51 else
52 command -nargs=+ HiLink hi def link <args>
53 endif
54
55 HiLink remindCommands Function
56 HiLink remindExpiry Repeat
57 HiLink remindTag Label
58 HiLink remindTimed Statement
59 HiLink remindMove Statement
60 HiLink remindSpecial Include
61 HiLink remindRun Function
62 HiLink remindConditional Conditional
63 HiLink remindComment Comment
4895774 Update runtime files.
Bram Moolenaar authored
64 HiLink remindTimes String
e5c6ef7 updated for version 7.0001
vimboss authored
65 HiLink remindString String
66 HiLink remindDebug Debug
67 HiLink remindVar Identifier
68 HiLink remindSubst Constant
69 HiLink remindAdvanceNumber Number
4895774 Update runtime files.
Bram Moolenaar authored
70 HiLink remindDateSeparators Comment
71 HiLink remindDates String
0496d46 updated for version 7.1a
vimboss authored
72 HiLink remindWarning Error
e5c6ef7 updated for version 7.0001
vimboss authored
73
74 delcommand HiLink
75 endif
76
77 let b:current_syntax = "remind"
78
79 " vim: ts=8 sw=2
Something went wrong with that request. Please try again.