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