annotate runtime/syntax/pod.vim @ 10386:d3f0946b4a80 v8.0.0087

commit https://github.com/vim/vim/commit/7df915d113ac1981792c50e8b000c9f5f784b78b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 17 17:25:32 2016 +0100 patch 8.0.0087 Problem: When the channel callback gets job info the job may already have been deleted. (lifepillar) Solution: Do not delete the job when the channel is still useful. (ichizok, closes #1242, closes #1245)
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Nov 2016 17:30:04 +0100
parents 46763b01cd9a
children d91cf2e26ef0
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
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
2 " Language: Perl POD format
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
3 " Maintainer: vim-perl <vim-perl@googlegroups.com>
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
4 " Previously: Scott Bigham <dsb@killerbunnies.org>
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
5 " Homepage: http://github.com/vim-perl/vim-perl
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
6 " Bugs/requests: http://github.com/vim-perl/vim-perl/issues
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5239
diff changeset
7 " Last Change: 2013-07-21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " To add embedded POD documentation highlighting to your syntax file, add
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " the commands:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " syn include @Pod <sfile>:p:h/pod.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " syn region myPOD start="^=pod" start="^=head" end="^=cut" keepend contained contains=@Pod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " and add myPod to the contains= list of some existing region, probably a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " comment. The "keepend" flag is needed because "=cut" is matched as a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " pattern in its own right.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Remove any old syntax stuff hanging around (this is suppressed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " automatically by ":syn include" if necessary).
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5277
diff changeset
22 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5277
diff changeset
23 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
27 let s:cpo_save = &cpo
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
28 set cpo&vim
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
29
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " POD commands
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
31 syn match podCommand "^=encoding" nextgroup=podCmdText contains=@NoSpell
2540
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
32 syn match podCommand "^=head[1234]" nextgroup=podCmdText contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
33 syn match podCommand "^=item" nextgroup=podCmdText contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
34 syn match podCommand "^=over" nextgroup=podOverIndent skipwhite contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
35 syn match podCommand "^=back" contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
36 syn match podCommand "^=cut" contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
37 syn match podCommand "^=pod" contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
38 syn match podCommand "^=for" nextgroup=podForKeywd skipwhite contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
39 syn match podCommand "^=begin" nextgroup=podForKeywd skipwhite contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
40 syn match podCommand "^=end" nextgroup=podForKeywd skipwhite contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Text of a =head1, =head2 or =item command
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
43 syn match podCmdText ".*$" contained contains=podFormat,@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Indent amount of =over command
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
46 syn match podOverIndent "\d\+" contained contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Formatter identifier keyword for =for, =begin and =end commands
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
49 syn match podForKeywd "\S\+" contained contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " An indented line, to be displayed verbatim
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
52 syn match podVerbatimLine "^\s.*$" contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " Inline textual items handled specially by POD
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
55 syn match podSpecial "\(\<\|&\)\I\i*\(::\I\i*\)*([^)]*)" contains=@NoSpell
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
56 syn match podSpecial "[$@%]\I\i*\(::\I\i*\)*\>" contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Special formatting sequences
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
59 syn region podFormat start="[IBSCLFX]<[^<]"me=e-1 end=">" oneline contains=podFormat,@NoSpell
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 398
diff changeset
60 syn region podFormat start="[IBSCLFX]<<\s" end="\s>>" oneline contains=podFormat,@NoSpell
26
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
61 syn match podFormat "Z<>"
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
62 syn match podFormat "E<\(\d\+\|\I\i*\)>" contains=podEscape,podEscape2,@NoSpell
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
63 syn match podEscape "\I\i*>"me=e-1 contained contains=@NoSpell
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
64 syn match podEscape2 "\d\+>"me=e-1 contained contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5277
diff changeset
67 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
69 hi def link podCommand Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
70 hi def link podCmdText String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
71 hi def link podOverIndent Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
72 hi def link podForKeywd Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
73 hi def link podFormat Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
74 hi def link podVerbatimLine PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
75 hi def link podSpecial Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
76 hi def link podEscape String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
77 hi def link podEscape2 Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
80 if exists("perl_pod_spellcheck_headings")
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
81 " Spell-check headings
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
82 syn clear podCmdText
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
83 syn match podCmdText ".*$" contained contains=podFormat
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
84 endif
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
85
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
86 if exists("perl_pod_formatting")
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
87 " By default, escapes like C<> are not checked for spelling. Remove B<>
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
88 " and I<> from the list of escapes.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
89 syn clear podFormat
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
90 syn region podFormat start="[CLF]<[^<]"me=e-1 end=">" oneline contains=podFormat,@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
91 syn region podFormat start="[CLF]<<\s" end="\s>>" oneline contains=podFormat,@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
92
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
93 " Don't spell-check inside E<>, but ensure that the E< itself isn't
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
94 " marked as a spelling mistake.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
95 syn match podFormat "E<\(\d\+\|\I\i*\)>" contains=podEscape,podEscape2,@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
96
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
97 " Z<> is a mock formatting code. Ensure Z<> on its own isn't marked as a
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
98 " spelling mistake.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
99 syn match podFormat "Z<>" contains=podEscape,podEscape2,@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
100
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
101 " These are required so that whatever is *within* B<...>, I<...>, etc. is
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
102 " spell-checked, but not the B, I, ... itself.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
103 syn match podBoldOpen "B<" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
104 syn match podItalicOpen "I<" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
105 syn match podNoSpaceOpen "S<" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
106 syn match podIndexOpen "X<" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
107
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
108 " Same as above but for the << >> syntax.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
109 syn match podBoldAlternativeDelimOpen "B<< " contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
110 syn match podItalicAlternativeDelimOpen "I<< " contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
111 syn match podNoSpaceAlternativeDelimOpen "S<< " contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
112 syn match podIndexAlternativeDelimOpen "X<< " contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
113
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
114 " Add support for spell checking text inside B<>, I<>, S<> and X<>.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
115 syn region podBold start="B<[^<]"me=e end=">" oneline contains=podBoldItalic,podBoldOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
116 syn region podBoldAlternativeDelim start="B<<\s" end="\s>>" oneline contains=podBoldAlternativeDelimOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
117
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
118 syn region podItalic start="I<[^<]"me=e end=">" oneline contains=podItalicBold,podItalicOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
119 syn region podItalicAlternativeDelim start="I<<\s" end="\s>>" oneline contains=podItalicAlternativeDelimOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
120
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
121 " Nested bold/italic and vice-versa
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
122 syn region podBoldItalic contained start="I<[^<]"me=e end=">" oneline
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
123 syn region podItalicBold contained start="B<[^<]"me=e end=">" oneline
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
124
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
125 syn region podNoSpace start="S<[^<]"ms=s-2 end=">"me=e oneline contains=podNoSpaceOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
126 syn region podNoSpaceAlternativeDelim start="S<<\s"ms=s-2 end="\s>>"me=e oneline contains=podNoSpaceAlternativeDelimOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
127
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
128 syn region podIndex start="X<[^<]"ms=s-2 end=">"me=e oneline contains=podIndexOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
129 syn region podIndexAlternativeDelim start="X<<\s"ms=s-2 end="\s>>"me=e oneline contains=podIndexAlternativeDelimOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
130
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
131 " Restore this (otherwise B<> is shown as bold inside verbatim)
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
132 syn match podVerbatimLine "^\s.*$" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
133
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
134 " Ensure formatted text can be displayed in headings and items
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
135 syn clear podCmdText
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
136
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
137 if exists("perl_pod_spellcheck_headings")
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
138 syn match podCmdText ".*$" contained contains=podFormat,podBold,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
139 \podBoldAlternativeDelim,podItalic,podItalicAlternativeDelim,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
140 \podBoldOpen,podItalicOpen,podBoldAlternativeDelimOpen,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
141 \podItalicAlternativeDelimOpen,podNoSpaceOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
142 else
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
143 syn match podCmdText ".*$" contained contains=podFormat,podBold,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
144 \podBoldAlternativeDelim,podItalic,podItalicAlternativeDelim,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
145 \@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
146 endif
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
147
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
148 " Specify how to display these
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
149 hi def podBold term=bold cterm=bold gui=bold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
150
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
151 hi link podBoldAlternativeDelim podBold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
152 hi link podBoldAlternativeDelimOpen podBold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
153 hi link podBoldOpen podBold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
154
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
155 hi link podNoSpace Identifier
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
156 hi link podNoSpaceAlternativeDelim Identifier
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
157
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
158 hi link podIndex Identifier
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
159 hi link podIndexAlternativeDelim Identifier
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
160
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
161 hi def podItalic term=italic cterm=italic gui=italic
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
162
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
163 hi link podItalicAlternativeDelim podItalic
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
164 hi link podItalicAlternativeDelimOpen podItalic
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
165 hi link podItalicOpen podItalic
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
166
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
167 hi def podBoldItalic term=italic,bold cterm=italic,bold gui=italic,bold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
168 hi def podItalicBold term=italic,bold cterm=italic,bold gui=italic,bold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
169 endif
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
170
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 let b:current_syntax = "pod"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
173 let &cpo = s:cpo_save
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
174 unlet s:cpo_save
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
175
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 " vim: ts=8