Mercurial > vim
comparison runtime/syntax/rtf.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 | 3fc0f57ecb91 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
11 " URL: http://www.mggen.com/vim/syntax/rtf.zip | 11 " URL: http://www.mggen.com/vim/syntax/rtf.zip |
12 " Last change: 2001 Mai 02 | 12 " Last change: 2001 Mai 02 |
13 | 13 |
14 " TODO: render underline, italic, bold | 14 " TODO: render underline, italic, bold |
15 | 15 |
16 " For version 5.x: Clear all syntax items | 16 " quit when a syntax file was already loaded |
17 " For version 6.x: Quit when a syntax file was already loaded | 17 if exists("b:current_syntax") |
18 if version < 600 | |
19 syntax clear | |
20 elseif exists("b:current_syntax") | |
21 finish | 18 finish |
22 endif | 19 endif |
23 | 20 |
24 " case on (all controls must be lower case) | 21 " case on (all controls must be lower case) |
25 syn case match | 22 syn case match |
50 | 47 |
51 " Some stuff for help files | 48 " Some stuff for help files |
52 syn match rtfFootNote "[#$K+]{\\footnote.*}" contains=rtfControlWord,rtfNewControlWord | 49 syn match rtfFootNote "[#$K+]{\\footnote.*}" contains=rtfControlWord,rtfNewControlWord |
53 | 50 |
54 " Define the default highlighting. | 51 " Define the default highlighting. |
55 " For version 5.7 and earlier: only when not done already | 52 " Only when an item doesn't have highlighting yet |
56 " For version 5.8 and later: only when an item doesn't have highlighting yet | 53 command -nargs=+ HiLink hi def link <args> |
57 if version >= 508 || !exists("did_rtf_syntax_inits") | |
58 if version < 508 | |
59 let did_rtf_syntax_inits = 1 | |
60 command -nargs=+ HiLink hi link <args> | |
61 else | |
62 command -nargs=+ HiLink hi def link <args> | |
63 endif | |
64 | 54 |
65 | 55 |
66 HiLink rtfControlWord Statement | 56 HiLink rtfControlWord Statement |
67 HiLink rtfNewControlWord Special | 57 HiLink rtfNewControlWord Special |
68 HiLink rtfControlSymbol Constant | 58 HiLink rtfControlSymbol Constant |
69 HiLink rtfCharacter Character | 59 HiLink rtfCharacter Character |
70 HiLink rtfUnicodeCharacter SpecialChar | 60 HiLink rtfUnicodeCharacter SpecialChar |
71 HiLink rtfFootNote Comment | 61 HiLink rtfFootNote Comment |
72 | 62 |
73 " Define colors for the syntax file | 63 " Define colors for the syntax file |
74 hi rtfRed term=underline cterm=underline ctermfg=DarkRed gui=underline guifg=DarkRed | 64 hi rtfRed term=underline cterm=underline ctermfg=DarkRed gui=underline guifg=DarkRed |
75 hi rtfGreen term=underline cterm=underline ctermfg=DarkGreen gui=underline guifg=DarkGreen | 65 hi rtfGreen term=underline cterm=underline ctermfg=DarkGreen gui=underline guifg=DarkGreen |
76 hi rtfBlue term=underline cterm=underline ctermfg=DarkBlue gui=underline guifg=DarkBlue | 66 hi rtfBlue term=underline cterm=underline ctermfg=DarkBlue gui=underline guifg=DarkBlue |
77 | 67 |
78 HiLink rtfRed rtfRed | 68 HiLink rtfRed rtfRed |
79 HiLink rtfGreen rtfGreen | 69 HiLink rtfGreen rtfGreen |
80 HiLink rtfBlue rtfBlue | 70 HiLink rtfBlue rtfBlue |
81 | 71 |
82 delcommand HiLink | 72 delcommand HiLink |
83 endif | |
84 | 73 |
85 | 74 |
86 let b:current_syntax = "rtf" | 75 let b:current_syntax = "rtf" |
87 | 76 |
88 " vim:ts=8 | 77 " vim:ts=8 |