annotate runtime/syntax/pod.vim @ 7510:b8104d67b976

Added tag v7.4.1056 for changeset a64793340689d0657962ca1f160e1c73895af666
author Christian Brabandt <cb@256bit.org>
date Thu, 07 Jan 2016 16:30:09 +0100
parents 42bf9264e64e
children 43efa4f5a8ea
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).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
30 let s:cpo_save = &cpo
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
31 set cpo&vim
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
32
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " POD commands
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
34 syn match podCommand "^=encoding" nextgroup=podCmdText contains=@NoSpell
2540
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
35 syn match podCommand "^=head[1234]" nextgroup=podCmdText contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
36 syn match podCommand "^=item" nextgroup=podCmdText contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
37 syn match podCommand "^=over" nextgroup=podOverIndent skipwhite contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
38 syn match podCommand "^=back" contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
39 syn match podCommand "^=cut" contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
40 syn match podCommand "^=pod" contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
41 syn match podCommand "^=for" nextgroup=podForKeywd skipwhite contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
42 syn match podCommand "^=begin" nextgroup=podForKeywd skipwhite contains=@NoSpell
9397d2d76340 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
43 syn match podCommand "^=end" nextgroup=podForKeywd skipwhite contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Text of a =head1, =head2 or =item command
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
46 syn match podCmdText ".*$" contained contains=podFormat,@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Indent amount of =over command
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
49 syn match podOverIndent "\d\+" 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 " Formatter identifier keyword for =for, =begin and =end commands
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
52 syn match podForKeywd "\S\+" contained 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 " An indented line, to be displayed verbatim
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
55 syn match podVerbatimLine "^\s.*$" contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " Inline textual items handled specially by POD
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
58 syn match podSpecial "\(\<\|&\)\I\i*\(::\I\i*\)*([^)]*)" contains=@NoSpell
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
59 syn match podSpecial "[$@%]\I\i*\(::\I\i*\)*\>" contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " Special formatting sequences
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
62 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
63 syn region podFormat start="[IBSCLFX]<<\s" end="\s>>" oneline contains=podFormat,@NoSpell
26
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
64 syn match podFormat "Z<>"
398
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
65 syn match podFormat "E<\(\d\+\|\I\i*\)>" contains=podEscape,podEscape2,@NoSpell
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
66 syn match podEscape "\I\i*>"me=e-1 contained contains=@NoSpell
d5dbe17efce2 updated for version 7.0105
vimboss
parents: 26
diff changeset
67 syn match podEscape2 "\d\+>"me=e-1 contained contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 if version >= 508 || !exists("did_pod_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 let did_pod_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink podCommand Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink podCmdText String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink podOverIndent Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink podForKeywd Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink podFormat Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink podVerbatimLine PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink podSpecial Identifier
26
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
87 HiLink podEscape String
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
88 HiLink podEscape2 Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
93 if exists("perl_pod_spellcheck_headings")
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
94 " Spell-check headings
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
95 syn clear podCmdText
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
96 syn match podCmdText ".*$" contained contains=podFormat
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
97 endif
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
98
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
99 if exists("perl_pod_formatting")
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
100 " 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
101 " and I<> from the list of escapes.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
102 syn clear podFormat
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
103 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
104 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
105
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
106 " 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
107 " marked as a spelling mistake.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
108 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
109
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
110 " 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
111 " spelling mistake.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
112 syn match podFormat "Z<>" contains=podEscape,podEscape2,@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 " 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
115 " spell-checked, but not the B, I, ... itself.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
116 syn match podBoldOpen "B<" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
117 syn match podItalicOpen "I<" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
118 syn match podNoSpaceOpen "S<" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
119 syn match podIndexOpen "X<" contains=@NoSpell
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 " Same as above but for the << >> syntax.
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
122 syn match podBoldAlternativeDelimOpen "B<< " contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
123 syn match podItalicAlternativeDelimOpen "I<< " contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
124 syn match podNoSpaceAlternativeDelimOpen "S<< " contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
125 syn match podIndexAlternativeDelimOpen "X<< " contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
126
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
127 " 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
128 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
129 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
130
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
131 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
132 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
133
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
134 " Nested bold/italic and vice-versa
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
135 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
136 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
137
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
138 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
139 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
140
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
141 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
142 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
143
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
144 " 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
145 syn match podVerbatimLine "^\s.*$" contains=@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
146
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
147 " 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
148 syn clear podCmdText
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
149
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
150 if exists("perl_pod_spellcheck_headings")
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
151 syn match podCmdText ".*$" contained contains=podFormat,podBold,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
152 \podBoldAlternativeDelim,podItalic,podItalicAlternativeDelim,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
153 \podBoldOpen,podItalicOpen,podBoldAlternativeDelimOpen,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
154 \podItalicAlternativeDelimOpen,podNoSpaceOpen
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
155 else
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
156 syn match podCmdText ".*$" contained contains=podFormat,podBold,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
157 \podBoldAlternativeDelim,podItalic,podItalicAlternativeDelim,
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
158 \@NoSpell
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
159 endif
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 " Specify how to display these
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
162 hi def podBold term=bold cterm=bold gui=bold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
163
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
164 hi link podBoldAlternativeDelim podBold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
165 hi link podBoldAlternativeDelimOpen podBold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
166 hi link podBoldOpen podBold
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
167
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
168 hi link podNoSpace Identifier
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
169 hi link podNoSpaceAlternativeDelim Identifier
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
170
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
171 hi link podIndex Identifier
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
172 hi link podIndexAlternativeDelim Identifier
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
173
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
174 hi def podItalic term=italic cterm=italic gui=italic
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
175
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
176 hi link podItalicAlternativeDelim podItalic
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
177 hi link podItalicAlternativeDelimOpen podItalic
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
178 hi link podItalicOpen podItalic
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
179
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
180 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
181 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
182 endif
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
183
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 let b:current_syntax = "pod"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
4681
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
186 let &cpo = s:cpo_save
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
187 unlet s:cpo_save
2eb30f341e8d Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2548
diff changeset
188
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 " vim: ts=8