annotate runtime/syntax/remind.vim @ 4763:1b5ca3e53566

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