Mercurial > vim
annotate runtime/syntax/remind.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 873eae260c97 |
children | 46763b01cd9a |
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 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
16 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
17 if exists("b:current_syntax") |
7 | 18 finish |
19 endif | |
20 | |
2034 | 21 " shut case off. |
7 | 22 syn case ignore |
23 | |
24 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
|
25 syn keyword remindExpiry UNTIL FROM SCANFROM SCAN WARN SCHED THROUGH |
7 | 26 syn keyword remindTag PRIORITY TAG |
27 syn keyword remindTimed AT DURATION | |
28 syn keyword remindMove ONCE SKIP BEFORE AFTER | |
2034 | 29 syn keyword remindSpecial INCLUDE INC BANNER PUSH-OMIT-CONTEXT PUSH CLEAR-OMIT-CONTEXT CLEAR POP-OMIT-CONTEXT POP COLOR |
7 | 30 syn keyword remindRun MSG MSF RUN CAL SATISFY SPECIAL PS PSFILE SHADE MOON |
31 syn keyword remindConditional IF ELSE ENDIF IFTRIG | |
2034 | 32 syn keyword remindDebug DEBUG DUMPVARS DUMP ERRMSG FLUSH PRESERVE |
7 | 33 syn match remindComment "#.*$" |
34 syn region remindString start=+'+ end=+'+ skip=+\\\\\|\\'+ oneline | |
35 syn region remindString start=+"+ end=+"+ skip=+\\\\\|\\"+ oneline | |
36 syn match remindVar "\$[_a-zA-Z][_a-zA-Z0-9]*" | |
37 syn match remindSubst "%[^ ]" | |
38 syn match remindAdvanceNumber "\(\*\|+\|-\|++\|--\)[0-9]\+" | |
2034 | 39 " XXX: use different separators for dates and times? |
40 syn match remindDateSeparators "[/:@\.-]" contained | |
41 syn match remindTimes "[0-9]\{1,2}[:\.][0-9]\{1,2}" contains=remindDateSeparators | |
42 " XXX: why not match only valid dates? Ok, checking for 'Feb the 30' would | |
43 " be impossible, but at least check for valid months and times. | |
44 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 | 45 " This will match trailing whitespaces that seem to break rem2ps. |
46 " Courtesy of Michael Dunn. | |
47 syn match remindWarning display excludenl "\S\s\+$"ms=s+1 | |
48 | |
7 | 49 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
50 command -nargs=+ HiLink hi def link <args> |
7 | 51 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
52 HiLink remindCommands Function |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
53 HiLink remindExpiry Repeat |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
54 HiLink remindTag Label |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
55 HiLink remindTimed Statement |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
56 HiLink remindMove Statement |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
57 HiLink remindSpecial Include |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
58 HiLink remindRun Function |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
59 HiLink remindConditional Conditional |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
60 HiLink remindComment Comment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
61 HiLink remindTimes String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
62 HiLink remindString String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
63 HiLink remindDebug Debug |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
64 HiLink remindVar Identifier |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
65 HiLink remindSubst Constant |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
66 HiLink remindAdvanceNumber Number |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
67 HiLink remindDateSeparators Comment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
68 HiLink remindDates String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
69 HiLink remindWarning Error |
7 | 70 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7228
diff
changeset
|
71 delcommand HiLink |
7 | 72 |
73 let b:current_syntax = "remind" | |
74 | |
75 " vim: ts=8 sw=2 |