Mercurial > vim
comparison runtime/syntax/pod.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 | 42bf9264e64e |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
17 " pattern in its own right. | 17 " pattern in its own right. |
18 | 18 |
19 | 19 |
20 " Remove any old syntax stuff hanging around (this is suppressed | 20 " Remove any old syntax stuff hanging around (this is suppressed |
21 " automatically by ":syn include" if necessary). | 21 " automatically by ":syn include" if necessary). |
22 " For version 5.x: Clear all syntax items | 22 " quit when a syntax file was already loaded |
23 " For version 6.x: Quit when a syntax file was already loaded | 23 if exists("b:current_syntax") |
24 if version < 600 | |
25 syntax clear | |
26 elseif exists("b:current_syntax") | |
27 finish | 24 finish |
28 endif | 25 endif |
29 | 26 |
30 let s:cpo_save = &cpo | 27 let s:cpo_save = &cpo |
31 set cpo&vim | 28 set cpo&vim |
65 syn match podFormat "E<\(\d\+\|\I\i*\)>" contains=podEscape,podEscape2,@NoSpell | 62 syn match podFormat "E<\(\d\+\|\I\i*\)>" contains=podEscape,podEscape2,@NoSpell |
66 syn match podEscape "\I\i*>"me=e-1 contained contains=@NoSpell | 63 syn match podEscape "\I\i*>"me=e-1 contained contains=@NoSpell |
67 syn match podEscape2 "\d\+>"me=e-1 contained contains=@NoSpell | 64 syn match podEscape2 "\d\+>"me=e-1 contained contains=@NoSpell |
68 | 65 |
69 " Define the default highlighting. | 66 " Define the default highlighting. |
70 " For version 5.7 and earlier: only when not done already | 67 " Only when an item doesn't have highlighting yet |
71 " For version 5.8 and later: only when an item doesn't have highlighting yet | 68 command -nargs=+ HiLink hi def link <args> |
72 if version >= 508 || !exists("did_pod_syntax_inits") | |
73 if version < 508 | |
74 let did_pod_syntax_inits = 1 | |
75 command -nargs=+ HiLink hi link <args> | |
76 else | |
77 command -nargs=+ HiLink hi def link <args> | |
78 endif | |
79 | 69 |
80 HiLink podCommand Statement | 70 HiLink podCommand Statement |
81 HiLink podCmdText String | 71 HiLink podCmdText String |
82 HiLink podOverIndent Number | 72 HiLink podOverIndent Number |
83 HiLink podForKeywd Identifier | 73 HiLink podForKeywd Identifier |
84 HiLink podFormat Identifier | 74 HiLink podFormat Identifier |
85 HiLink podVerbatimLine PreProc | 75 HiLink podVerbatimLine PreProc |
86 HiLink podSpecial Identifier | 76 HiLink podSpecial Identifier |
87 HiLink podEscape String | 77 HiLink podEscape String |
88 HiLink podEscape2 Number | 78 HiLink podEscape2 Number |
89 | 79 |
90 delcommand HiLink | 80 delcommand HiLink |
91 endif | |
92 | 81 |
93 if exists("perl_pod_spellcheck_headings") | 82 if exists("perl_pod_spellcheck_headings") |
94 " Spell-check headings | 83 " Spell-check headings |
95 syn clear podCmdText | 84 syn clear podCmdText |
96 syn match podCmdText ".*$" contained contains=podFormat | 85 syn match podCmdText ".*$" contained contains=podFormat |