annotate runtime/syntax/doxygen.vim @ 6911:e09a7ff88046 v7.4.775

patch 7.4.775 Problem: It is not possible to avoid using the first item of completion. Solution: Add the "noinsert" and "noselect" values to 'completeopt'. (Shougo Matsu)
author Bram Moolenaar <bram@vim.org>
date Fri, 10 Jul 2015 18:18:40 +0200
parents 42bf9264e64e
children 65d7fd8381a3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
1 " DoxyGen syntax hilighting extension for c/c++/idl/java
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
2 " Language: doxygen on top of c, cpp, idl, java, php
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
3 " Maintainer: Michael Geddes <vimmer@frog.wheelycreek.net>
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
4 " Author: Michael Geddes
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
5 " Last Change: Jan 2009 (\tparam by Domnique Pelle, Aug 2013)
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
6 " Version: 1.23
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
7 "
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
8 " Copyright 2004-2008 Michael Geddes
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
9 " Please feel free to use, modify & distribute all or part of this script,
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
10 " providing this copyright message remains.
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
11 " I would appreciate being acknowledged in any derived scripts, and would
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
12 " appreciate and welcome any updates, modifications or suggestions.
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
13
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
14 " NOTE: Comments welcome!
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
15 "
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
16 " There are two variables that control the syntax highlighting produced by this
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
17 " script:
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
18 " doxygen_enhanced_colour - Use the (non-standard) original colours designed
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
19 " for this highlighting.
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
20 " doxygen_my_rendering - Disable the HTML bold/italic/underline rendering.
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
21 "
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
22 " A brief description without '.' or '!' will cause the end comment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
23 " character to be marked as an error. You can define the colour of this using
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
24 " the highlight doxygenErrorComment.
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
25 " A \link without an \endlink will cause an error highlight on the end-comment.
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
26 " This is defined by doxygenLinkError
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
27 "
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
28 " The variable g:doxygen_codeword_font can be set to the guifont for marking \c
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
29 " words - a 'typewriter' like font normally. Spaces must be escaped. It can
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
30 " also be set to any highlight attribute. Alternatively, a highlight for doxygenCodeWord
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
31 " can be used to override it.
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
32 "
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
33 " By default, highlighting is done assuming you have the JAVADOC_AUTOBRIEF
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
34 " setting turned on in your Doxygen configuration. If you don't, you
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
35 " can set the variable g:doxygen_javadoc_autobrief to 0 to have the
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
36 " highlighting more accurately reflect the way Doxygen will interpret your
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
37 " comments.
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
38 "
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
39 " Support for cpp, c, idl, doxygen and php.
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
40 "
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
41 " Special thanks to: Wu Yongwei, Toby Allsopp
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
42 "
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
43
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
44 if exists('b:suppress_doxygen')
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
45 unlet b:suppress_doxygen
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
46 finish
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
47 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
48
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
49 if exists('b:current_syntax') && b:current_syntax =~ 'doxygen' && !exists('doxygen_debug_script')
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
50 finish
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
51 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
52
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
53 let s:cpo_save = &cpo
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
54 try
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
55 set cpo&vim
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
56
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
57 " Start of Doxygen syntax hilighting:
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
58 "
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
59
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
60 " C/C++ Style line comments
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
61 syn region doxygenComment start=+/\*\(\*/\)\@![*!]+ end=+\*/+ contains=doxygenSyncStart,doxygenStart,doxygenTODO keepend fold containedin=phpRegion
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
62 syn region doxygenCommentL start=+//[/!]<\@!+me=e-1 end=+$+ contains=doxygenStartL,@Spell keepend skipwhite skipnl nextgroup=doxygenComment2 fold containedin=phpRegion
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
63 syn region doxygenCommentL start=+//[/!]<+me=e-2 end=+$+ contains=doxygenStartL,@Spell keepend skipwhite skipnl fold containedin=phpRegion
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
64 syn region doxygenCommentL start=+//@\ze[{}]+ end=+$+ contains=doxygenGroupDefine,doxygenGroupDefineSpecial,@Spell fold containedin=phpRegion
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
65
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
66 " Single line brief followed by multiline comment.
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
67 syn region doxygenComment2 start=+/\*\(\*/\)\@![*!]+ end=+\*/+ contained contains=doxygenSyncStart2,doxygenStart2,doxygenTODO keepend fold
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
68 " This helps with sync-ing as for some reason, syncing behaves differently to a normal region, and the start pattern does not get matched.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
69 syn match doxygenSyncStart2 +[^*/]+ contained nextgroup=doxygenBody,doxygenPrev,doxygenStartSpecial,doxygenSkipComment,doxygenStartSkip2 skipwhite skipnl
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
70
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
71 " Skip empty lines at the start for when comments start on the 2nd/3rd line.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
72 syn match doxygenStartSkip2 +^\s*\*[^/]+me=e-1 contained nextgroup=doxygenBody,doxygenStartSpecial,doxygenStartSkip skipwhite skipnl
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
73 syn match doxygenStartSkip2 +^\s*\*$+ contained nextgroup=doxygenBody,doxygenStartSpecial,,doxygenStartSkip skipwhite skipnl
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
74 syn match doxygenStart2 +/\*[*!]+ contained nextgroup=doxygenBody,doxygenPrev,doxygenStartSpecial,doxygenStartSkip2 skipwhite skipnl
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
75
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
76
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
77 " Match the Starting pattern (effectively creating the start of a BNF)
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
78 if !exists('g:doxygen_javadoc_autobrief') || g:doxygen_javadoc_autobrief
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
79 syn match doxygenStart +/\*[*!]+ contained nextgroup=doxygenBrief,doxygenPrev,doxygenFindBriefSpecial,doxygenStartSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
80 syn match doxygenStartL +//[/!]+ contained nextgroup=doxygenPrevL,doxygenBriefL,doxygenSpecial skipwhite
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
81 " Match the first sentence as a brief comment
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
82 if ! exists('g:doxygen_end_punctuation')
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
83 let g:doxygen_end_punctuation='[.]'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
84 endif
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
85
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
86 exe 'syn region doxygenBrief contained start=+[\\@]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@*]+ start=+\(^\s*\)\@<!\*/\@!+ start=+\<\k+ skip=+'.doxygen_end_punctuation.'\S\@=+ end=+'.doxygen_end_punctuation.'+ end=+\(\s*\(\n\s*\*\=\s*\)[@\\]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\@!\)\@=+ contains=doxygenSmallSpecial,doxygenContinueComment,doxygenBriefEndComment,doxygenFindBriefSpecial,doxygenSmallSpecial,@doxygenHtmlGroup,doxygenTODO,doxygenHyperLink,doxygenHashLink,@Spell skipnl nextgroup=doxygenBody'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
87
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
88 syn match doxygenBriefEndComment +\*/+ contained
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
89
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
90 exe 'syn region doxygenBriefL start=+@\k\@!\|[\\@]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@]+ start=+\<+ skip=+'.doxygen_end_punctuation.'\S+ end=+'.doxygen_end_punctuation.'\|$+ contained contains=doxygenSmallSpecial,doxygenHyperLink,doxygenHashLink,@doxygenHtmlGroup,@Spell keepend'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
91 syn match doxygenPrevL +<+ contained nextgroup=doxygenBriefL,doxygenSpecial skipwhite
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
92 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
93 syn match doxygenStart +/\*[*!]+ contained nextgroup=doxygenBody,doxygenPrev,doxygenFindBriefSpecial,doxygenStartSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
94 syn match doxygenStartL +//[/!]+ contained nextgroup=doxygenPrevL,doxygenLine,doxygenSpecial skipwhite
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
95 syn region doxygenLine start=+@\k\@!\|[\\@]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@<]+ start=+\<+ end='$' contained contains=doxygenSmallSpecial,doxygenHyperLink,doxygenHashLink,@doxygenHtmlGroup,@Spell keepend
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
96 syn match doxygenPrevL +<+ contained nextgroup=doxygenLine,doxygenSpecial skipwhite
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
97
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
98 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
99
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
100 " This helps with sync-ing as for some reason, syncing behaves differently to a normal region, and the start pattern does not get matched.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
101 syn match doxygenSyncStart +\ze[^*/]+ contained nextgroup=doxygenBrief,doxygenPrev,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
102
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
103 syn region doxygenBriefLine contained start=+\<\k+ end=+\(\n\s*\*\=\s*\([@\\]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\@!\)\|\s*$\)\@=+ contains=doxygenContinueComment,doxygenFindBriefSpecial,doxygenSmallSpecial,@doxygenHtmlGroup,doxygenTODO,doxygenHyperLink,doxygenHashLink,@Spell skipwhite keepend
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
104
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
105 " Match a '<' for applying a comment to the previous element.
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
106 syn match doxygenPrev +<+ contained nextgroup=doxygenBrief,doxygenBody,doxygenSpecial,doxygenStartSkip skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
107
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
108 if exists("c_comment_strings")
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
109 " These are anti-Doxygen comments. If there are more than two asterisks or 3 '/'s
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
110 " then turn the comments back into normal C comments.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
111 syn region cComment start="/\*\*\*" end="\*/" contains=@cCommentGroup,cCommentString,cCharacter,cNumbersCom,cSpaceError
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
112 syn region cCommentL start="////" skip="\\$" end="$" contains=@cCommentGroup,cComment2String,cCharacter,cNumbersCom,cSpaceError
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
113 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
114 syn region cComment start="/\*\*\*" end="\*/" contains=@cCommentGroup,cSpaceError
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
115 syn region cCommentL start="////" skip="\\$" end="$" contains=@cCommentGroup,cSpaceError
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
116 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
117
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
118 " Special commands at the start of the area: starting with '@' or '\'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
119 syn region doxygenStartSpecial contained start=+[@\\]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\@!+ end=+$+ end=+\*/+me=s-1,he=s-1 contains=doxygenSpecial nextgroup=doxygenSkipComment skipnl keepend
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
120 syn match doxygenSkipComment contained +^\s*\*/\@!+ nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenPage skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
121
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
122 "syn region doxygenBodyBit contained start=+$+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
123
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
124 " The main body of a doxygen comment.
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
125 syn region doxygenBody contained start=+\(/\*[*!]\)\@<!<\|[^<]\|$+ matchgroup=doxygenEndComment end=+\*/+re=e-2,me=e-2 contains=doxygenContinueComment,doxygenTODO,doxygenSpecial,doxygenSmallSpecial,doxygenHyperLink,doxygenHashLink,@doxygenHtmlGroup,@Spell
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
126
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
127 " These allow the skipping of comment continuation '*' characters.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
128 syn match doxygenContinueComment contained +^\s*\*/\@!\s*+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
129
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
130 " Catch a Brief comment without punctuation - flag it as an error but
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
131 " make sure the end comment is picked up also.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
132 syn match doxygenErrorComment contained +\*/+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
133
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
134
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
135 " Skip empty lines at the start for when comments start on the 2nd/3rd line.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
136 if !exists('g:doxygen_javadoc_autobrief') || g:doxygen_javadoc_autobrief
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
137 syn match doxygenStartSkip +^\s*\*[^/]+me=e-1 contained nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
138 syn match doxygenStartSkip +^\s*\*$+ contained nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
139 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
140 syn match doxygenStartSkip +^\s*\*[^/]+me=e-1 contained nextgroup=doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage,doxygenBody skipwhite skipnl
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
141 syn match doxygenStartSkip +^\s*\*$+ contained nextgroup=doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage,doxygenBody skipwhite skipnl
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
142 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
143
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
144 " Match an [@\]brief so that it moves to body-mode.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
145 "
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
146 "
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
147 " syn match doxygenBriefLine contained
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
148 syn match doxygenBriefSpecial contained +[@\\]+ nextgroup=doxygenBriefWord skipwhite
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
149 syn region doxygenFindBriefSpecial start=+[@\\]brief\>+ end=+\(\n\s*\*\=\s*\([@\\]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\@!\)\|\s*$\)\@=+ keepend contains=doxygenBriefSpecial nextgroup=doxygenBody keepend skipwhite skipnl contained
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
150
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
151
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
152 " Create the single word matching special identifiers.
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
153
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
154 fun! s:DxyCreateSmallSpecial( kword, name )
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
155
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
156 let mx='[-:0-9A-Za-z_%=&+*/!~>|]\@<!\([-0-9A-Za-z_%=+*/!~>|#]\+[-0-9A-Za-z_%=+*/!~>|]\@!\|\\[\\<>&.]@\|[.,][0-9a-zA-Z_]\@=\|::\|([^)]*)\|&[0-9a-zA-Z]\{2,7};\)\+'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
157 exe 'syn region doxygenSpecial'.a:name.'Word contained start=+'.a:kword.'+ end=+\(\_s\+'.mx.'\)\@<=[-a-zA-Z_0-9+*/^%|~!=&\\]\@!+ skipwhite contains=doxygenContinueComment,doxygen'.a:name.'Word'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
158 exe 'syn match doxygen'.a:name.'Word contained "\_s\@<='.mx.'" contains=doxygenHtmlSpecial,@Spell keepend'
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
159 endfun
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
160 call s:DxyCreateSmallSpecial('p', 'Code')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
161 call s:DxyCreateSmallSpecial('c', 'Code')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
162 call s:DxyCreateSmallSpecial('b', 'Bold')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
163 call s:DxyCreateSmallSpecial('e', 'Emphasised')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
164 call s:DxyCreateSmallSpecial('em', 'Emphasised')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
165 call s:DxyCreateSmallSpecial('a', 'Argument')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
166 call s:DxyCreateSmallSpecial('ref', 'Ref')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
167 delfun s:DxyCreateSmallSpecial
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
168
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
169 syn match doxygenSmallSpecial contained +[@\\]\(\<[npcbea]\>\|\<em\>\|\<ref\>\|\<link\>\|f\$\|[$\\&<>#]\)\@=+ nextgroup=doxygenOtherLink,doxygenHyperLink,doxygenHashLink,doxygenFormula,doxygenSymbol,doxygenSpecial.*Word
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
170
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
171 " Now for special characters
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
172 syn match doxygenSpecial contained +[@\\]\(\<[npcbea]\>\|\<em\>\|\<ref\|\<link\>\>\|\<f\$\|[$\\&<>#]\)\@!+ nextgroup=doxygenParam,doxygenRetval,doxygenBriefWord,doxygenBold,doxygenBOther,doxygenOther,doxygenOtherTODO,doxygenOtherWARN,doxygenOtherBUG,doxygenPage,doxygenGroupDefine,doxygenCodeRegion,doxygenVerbatimRegion,doxygenDotRegion
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
173 " doxygenOtherLink,doxygenSymbol,doxygenFormula,doxygenErrorSpecial,doxygenSpecial.*Word
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
174 "
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
175 syn match doxygenGroupDefine contained +@\@<=[{}]+
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
176 syn match doxygenGroupDefineSpecial contained +@\ze[{}]+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
177
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
178 syn match doxygenErrorSpecial contained +\s+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
179
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
180 " Match parameters and retvals (highlighting the first word as special).
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
181 syn match doxygenParamDirection contained "\v\[(\s*in>((]\s*\[|\s*,\s*)out>)=|out>((]\s*\[|\s*,\s*)in>)=)\]" nextgroup=doxygenParamName skipwhite
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
182 syn keyword doxygenParam contained param tparam nextgroup=doxygenParamName,doxygenParamDirection skipwhite
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
183 syn match doxygenParamName contained +[A-Za-z0-9_:]\++ nextgroup=doxygenSpecialMultilineDesc skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
184 syn keyword doxygenRetval contained retval throw exception nextgroup=doxygenParamName skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
185
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
186 " Match one line identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
187 syn keyword doxygenOther contained addindex anchor
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
188 \ dontinclude endhtmlonly endlatexonly showinitializer hideinitializer
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
189 \ example htmlonly image include ingroup internal latexonly line
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
190 \ overload relates relatesalso sa skip skipline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
191 \ until verbinclude version addtogroup htmlinclude copydoc dotfile
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
192 \ xmlonly endxmlonly
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
193 \ nextgroup=doxygenSpecialOnelineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
194
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
195 syn region doxygenCodeRegion contained matchgroup=doxygenOther start=+\<code\>+ matchgroup=doxygenOther end=+[\\@]\@<=\<endcode\>+ contains=doxygenCodeRegionSpecial,doxygenContinueComment,doxygenErrorComment,@NoSpell
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
196 syn match doxygenCodeRegionSpecial contained +[\\@]\(endcode\>\)\@=+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
197
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
198 syn region doxygenVerbatimRegion contained matchgroup=doxygenOther start=+\<verbatim\>+ matchgroup=doxygenOther end=+[\\@]\@<=\<endverbatim\>+ contains=doxygenVerbatimRegionSpecial,doxygenContinueComment,doxygenErrorComment,@NoSpell
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
199 syn match doxygenVerbatimRegionSpecial contained +[\\@]\(endverbatim\>\)\@=+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
200
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
201 if exists('b:current_syntax')
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
202 let b:doxygen_syntax_save=b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
203 unlet b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
204 endif
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
205
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
206 syn include @Dotx syntax/dot.vim
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
207
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
208 if exists('b:doxygen_syntax_save')
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
209 let b:current_syntax=b:doxygen_syntax_save
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
210 unlet b:doxygen_syntax_save
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
211 else
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
212 unlet b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
213 endif
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
214
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
215 syn region doxygenDotRegion contained matchgroup=doxygenOther start=+\<dot\>+ matchgroup=doxygenOther end=+[\\@]\@<=\<enddot\>+ contains=doxygenDotRegionSpecial,doxygenErrorComment,doxygenContinueComment,@NoSpell,@Dotx
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
216 syn match doxygenDotRegionSpecial contained +[\\@]\(enddot\>\)\@=+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
217
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
218 " Match single line identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
219 syn keyword doxygenBOther contained class enum file fn mainpage interface
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
220 \ namespace struct typedef union var def name
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
221 \ nextgroup=doxygenSpecialTypeOnelineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
222
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
223 syn keyword doxygenOther contained par nextgroup=doxygenHeaderLine
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
224 syn region doxygenHeaderLine start=+.+ end=+^+ contained skipwhite nextgroup=doxygenSpecialMultilineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
225
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
226 syn keyword doxygenOther contained arg author date deprecated li return returns see invariant note post pre remarks since test nextgroup=doxygenSpecialMultilineDesc
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
227 syn keyword doxygenOtherTODO contained todo attention nextgroup=doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
228 syn keyword doxygenOtherWARN contained warning nextgroup=doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
229 syn keyword doxygenOtherBUG contained bug nextgroup=doxygenSpecialMultilineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
230
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
231 " Handle \link, \endlink, highlighting the link-to and the link text bits separately.
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
232 syn region doxygenOtherLink matchgroup=doxygenOther start=+\<link\>+ end=+[\@]\@<=endlink\>+ contained contains=doxygenLinkWord,doxygenContinueComment,doxygenLinkError,doxygenEndlinkSpecial
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
233 syn match doxygenEndlinkSpecial contained +[\\@]\zeendlink\>+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
234
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
235 syn match doxygenLinkWord "[_a-zA-Z:#()][_a-z0-9A-Z:#()]*\>" contained skipnl nextgroup=doxygenLinkRest,doxygenContinueLinkComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
236 syn match doxygenLinkRest +[^*@\\]\|\*/\@!\|[@\\]\(endlink\>\)\@!+ contained skipnl nextgroup=doxygenLinkRest,doxygenContinueLinkComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
237 syn match doxygenContinueLinkComment contained +^\s*\*\=[^/]+me=e-1 nextgroup=doxygenLinkRest
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
238 syn match doxygenLinkError "\*/" contained
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
239 " #Link hilighting.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
240 syn match doxygenHashLink /\([a-zA-Z_][0-9a-zA-Z_]*\)\?#\(\.[0-9a-zA-Z_]\@=\|[a-zA-Z0-9_]\+\|::\|()\)\+/ contained contains=doxygenHashSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
241 syn match doxygenHashSpecial /#/ contained
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
242 syn match doxygenHyperLink /\(\s\|^\s*\*\?\)\@<=\(http\|https\|ftp\):\/\/[-0-9a-zA-Z_?&=+#%/.!':;@~]\+/ contained
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
243
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
244 " Handle \page. This does not use doxygenBrief.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
245 syn match doxygenPage "[\\@]page\>"me=s+1 contained skipwhite nextgroup=doxygenPagePage
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
246 syn keyword doxygenPagePage page contained skipwhite nextgroup=doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
247 syn region doxygenPageDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend skipwhite skipnl nextgroup=doxygenBody
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
248 syn match doxygenPageIdent "\<[a-zA-Z_0-9]\+\>" contained nextgroup=doxygenPageDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
249
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
250 " Handle section
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
251 syn keyword doxygenOther defgroup section subsection subsubsection weakgroup contained skipwhite nextgroup=doxygenSpecialIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
252 syn region doxygenSpecialSectionDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend skipwhite skipnl nextgroup=doxygenContinueComment
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
253 syn match doxygenSpecialIdent "\<[a-zA-Z_0-9]\+\>" contained nextgroup=doxygenSpecialSectionDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
254
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
255 " Does the one-line description for the one-line type identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
256 syn region doxygenSpecialTypeOnelineDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
257 syn region doxygenSpecialOnelineDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
258
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
259 " Handle the multiline description for the multiline type identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
260 " Continue until an 'empty' line (can contain a '*' continuation) or until the
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
261 " next whole-line @ command \ command.
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
262 syn region doxygenSpecialMultilineDesc start=+.\++ skip=+^\s*\(\*/\@!\s*\)\=\(\<\|[@\\]\<\([npcbea]\>\|em\>\|ref\|link\>\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@*]\)+ end=+^+ contained contains=doxygenSpecialContinueComment,doxygenSmallSpecial,doxygenHyperLink,doxygenHashLink,@doxygenHtmlGroup,@Spell skipwhite keepend
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
263 syn match doxygenSpecialContinueComment contained +^\s*\*/\@!\s*+ nextgroup=doxygenSpecial skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
264
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
265 " Handle special cases 'bold' and 'group'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
266 syn keyword doxygenBold contained bold nextgroup=doxygenSpecialHeading
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
267 syn keyword doxygenBriefWord contained brief nextgroup=doxygenBriefLine skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
268 syn match doxygenSpecialHeading +.\++ contained skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
269 syn keyword doxygenGroup contained group nextgroup=doxygenGroupName skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
270 syn keyword doxygenGroupName contained +\k\++ nextgroup=doxygenSpecialOnelineDesc skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
271
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
272 " Handle special symbol identifiers @$, @\, @$ etc
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
273 syn match doxygenSymbol contained +[$\\&<>#n]+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
274
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
275 " Simplistic handling of formula regions
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
276 syn region doxygenFormula contained matchgroup=doxygenFormulaEnds start=+f\$+ end=+[@\\]f\$+ contains=doxygenFormulaSpecial,doxygenFormulaOperator
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
277 syn match doxygenFormulaSpecial contained +[@\\]\(f[^$]\|[^f]\)+me=s+1 nextgroup=doxygenFormulaKeyword,doxygenFormulaEscaped
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
278 syn match doxygenFormulaEscaped contained "."
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
279 syn match doxygenFormulaKeyword contained "[a-z]\+"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
280 syn match doxygenFormulaOperator contained +[_^]+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
281
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
282 syn region doxygenFormula contained matchgroup=doxygenFormulaEnds start=+f\[+ end=+[@\\]f]+ contains=doxygenFormulaSpecial,doxygenFormulaOperator,doxygenAtom
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
283 syn region doxygenAtom contained transparent matchgroup=doxygenFormulaOperator start=+{+ end=+}+ contains=doxygenAtom,doxygenFormulaSpecial,doxygenFormulaOperator
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
284
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
285 " Add TODO hilighting.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
286 syn keyword doxygenTODO contained TODO README XXX FIXME
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
287
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
288 " Supported HTML subset. Not perfect, but okay.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
289 syn case ignore
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
290 syn region doxygenHtmlTag contained matchgroup=doxygenHtmlCh start=+\v\</=\ze([biuap]|em|strong|img|br|center|code|dfn|d[ldt]|hr|h[0-3]|li|[ou]l|pre|small|sub|sup|table|tt|var|caption|src|alt|longdesc|name|height|width|usemap|ismap|href|type)>+ skip=+\\<\|\<\k\+=\("[^"]*"\|'[^']*\)+ end=+>+ contains=doxygenHtmlCmd,doxygenContinueComment,doxygenHtmlVar
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
291 syn keyword doxygenHtmlCmd contained b i em strong u img a br p center code dfn dl dd dt hr h1 h2 h3 li ol ul pre small sub sup table tt var caption nextgroup=doxygenHtmlVar skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
292 syn keyword doxygenHtmlVar contained src alt longdesc name height width usemap ismap href type nextgroup=doxygenHtmlEqu skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
293 syn match doxygenHtmlEqu contained +=+ nextgroup=doxygenHtmlExpr skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
294 syn match doxygenHtmlExpr contained +"\(\\.\|[^"]\)*"\|'\(\\.\|[^']\)*'+ nextgroup=doxygenHtmlVar skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
295 syn case match
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
296 syn match doxygenHtmlSpecial contained "&\(copy\|quot\|[AEIOUYaeiouy]uml\|[AEIOUYaeiouy]acute\|[AEIOUaeiouy]grave\|[AEIOUaeiouy]circ\|[ANOano]tilde\|szlig\|[Aa]ring\|nbsp\|gt\|lt\|amp\);"
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
297
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
298 syn cluster doxygenHtmlGroup contains=doxygenHtmlCode,doxygenHtmlBold,doxygenHtmlUnderline,doxygenHtmlItalic,doxygenHtmlSpecial,doxygenHtmlTag,doxygenHtmlLink
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
299
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
300 syn cluster doxygenHtmlTop contains=@Spell,doxygenHtmlSpecial,doxygenHtmlTag,doxygenContinueComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
301 " Html Support
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
302 syn region doxygenHtmlLink contained start=+<[aA]\>\s*\(\n\s*\*\s*\)\=\(\(name\|href\)=\("[^"]*"\|'[^']*'\)\)\=\s*>+ end=+</[aA]>+me=e-4 contains=@doxygenHtmlTop
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
303 hi link doxygenHtmlLink Underlined
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
304
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
305 syn region doxygenHtmlBold contained start="\c<b\>" end="\c</b>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlBoldUnderline,doxygenHtmlBoldItalic,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
306 syn region doxygenHtmlBold contained start="\c<strong\>" end="\c</strong>"me=e-9 contains=@doxygenHtmlTop,doxygenHtmlBoldUnderline,doxygenHtmlBoldItalic,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
307 syn region doxygenHtmlBoldUnderline contained start="\c<u\>" end="\c</u>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlBoldUnderlineItalic,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
308 syn region doxygenHtmlBoldItalic contained start="\c<i\>" end="\c</i>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlBoldItalicUnderline,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
309 syn region doxygenHtmlBoldItalic contained start="\c<em\>" end="\c</em>"me=e-5 contains=@doxygenHtmlTop,doxygenHtmlBoldItalicUnderline,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
310 syn region doxygenHtmlBoldUnderlineItalic contained start="\c<i\>" end="\c</i>"me=e-4 contains=@doxygenHtmlTop,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
311 syn region doxygenHtmlBoldUnderlineItalic contained start="\c<em\>" end="\c</em>"me=e-5 contains=@doxygenHtmlTop,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
312 syn region doxygenHtmlBoldItalicUnderline contained start="\c<u\>" end="\c</u>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlBoldUnderlineItalic,@Spell
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
313
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
314 syn region doxygenHtmlUnderline contained start="\c<u\>" end="\c</u>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlUnderlineBold,doxygenHtmlUnderlineItalic,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
315 syn region doxygenHtmlUnderlineBold contained start="\c<b\>" end="\c</b>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlUnderlineBoldItalic,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
316 syn region doxygenHtmlUnderlineBold contained start="\c<strong\>" end="\c</strong>"me=e-9 contains=@doxygenHtmlTop,doxygenHtmlUnderlineBoldItalic,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
317 syn region doxygenHtmlUnderlineItalic contained start="\c<i\>" end="\c</i>"me=e-4 contains=@doxygenHtmlTop,htmUnderlineItalicBold,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
318 syn region doxygenHtmlUnderlineItalic contained start="\c<em\>" end="\c</em>"me=e-5 contains=@doxygenHtmlTop,htmUnderlineItalicBold,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
319 syn region doxygenHtmlUnderlineItalicBold contained start="\c<b\>" end="\c</b>"me=e-4 contains=@doxygenHtmlTop,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
320 syn region doxygenHtmlUnderlineItalicBold contained start="\c<strong\>" end="\c</strong>"me=e-9 contains=@doxygenHtmlTop,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
321 syn region doxygenHtmlUnderlineBoldItalic contained start="\c<i\>" end="\c</i>"me=e-4 contains=@doxygenHtmlTop,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
322 syn region doxygenHtmlUnderlineBoldItalic contained start="\c<em\>" end="\c</em>"me=e-5 contains=@doxygenHtmlTop,@Spell
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
323
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
324 syn region doxygenHtmlItalic contained start="\c<i\>" end="\c</i>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlItalicBold,doxygenHtmlItalicUnderline,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
325 syn region doxygenHtmlItalic contained start="\c<em\>" end="\c</em>"me=e-5 contains=@doxygenHtmlTop,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
326 syn region doxygenHtmlItalicBold contained start="\c<b\>" end="\c</b>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlItalicBoldUnderline,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
327 syn region doxygenHtmlItalicBold contained start="\c<strong\>" end="\c</strong>"me=e-9 contains=@doxygenHtmlTop,doxygenHtmlItalicBoldUnderline,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
328 syn region doxygenHtmlItalicBoldUnderline contained start="\c<u\>" end="\c</u>"me=e-4 contains=@doxygenHtmlTop,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
329 syn region doxygenHtmlItalicUnderline contained start="\c<u\>" end="\c</u>"me=e-4 contains=@doxygenHtmlTop,doxygenHtmlItalicUnderlineBold,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
330 syn region doxygenHtmlItalicUnderlineBold contained start="\c<b\>" end="\c</b>"me=e-4 contains=@doxygenHtmlTop,@Spell
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
331 syn region doxygenHtmlItalicUnderlineBold contained start="\c<strong\>" end="\c</strong>"me=e-9 contains=@doxygenHtmlTop,@Spell
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
332
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
333 syn region doxygenHtmlCode contained start="\c<code\>" end="\c</code>"me=e-7 contains=@doxygenHtmlTop,@NoSpell
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
334
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
335 " Prevent the doxygen contained matches from leaking into the c/rc groups.
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
336 syn cluster cParenGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
337 syn cluster cParenGroup remove=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
338 syn cluster cPreProcGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
339 syn cluster cMultiGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
340 syn cluster rcParenGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
341 syn cluster rcParenGroup remove=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
342 syn cluster rcGroup add=doxygen.*
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
343
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
344 let s:my_syncolor=0
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
345 if !exists(':SynColor')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
346 command -nargs=+ SynColor hi def <args>
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
347 let s:my_syncolor=1
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
348 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
349
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
350 let s:my_synlink=0
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
351 if !exists(':SynLink')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
352 command -nargs=+ SynLink hi def link <args>
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
353 let s:my_synlink=1
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
354 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
355
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
356 try
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
357 "let did_doxygen_syntax_inits = &background
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
358 hi doxygen_Dummy guifg=black
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
359
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
360 fun! s:Doxygen_Hilights_Base()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
361 SynLink doxygenHtmlSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
362 SynLink doxygenHtmlVar Type
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
363 SynLink doxygenHtmlExpr String
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
364
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
365 SynLink doxygenSmallSpecial SpecialChar
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
366
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
367 SynLink doxygenSpecialCodeWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
368 SynLink doxygenSpecialBoldWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
369 SynLink doxygenSpecialEmphasisedWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
370 SynLink doxygenSpecialArgumentWord doxygenSmallSpecial
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
371
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
372 " SynColor doxygenFormulaKeyword cterm=bold ctermfg=DarkMagenta guifg=DarkMagenta gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
373 SynLink doxygenFormulaKeyword Keyword
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
374 "SynColor doxygenFormulaEscaped ctermfg=DarkMagenta guifg=DarkMagenta gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
375 SynLink doxygenFormulaEscaped Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
376 SynLink doxygenFormulaOperator Operator
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
377 SynLink doxygenFormula Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
378 SynLink doxygenSymbol Constant
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
379 SynLink doxygenSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
380 SynLink doxygenFormulaSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
381 "SynColor doxygenFormulaSpecial ctermfg=DarkBlue guifg=DarkBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
382 endfun
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
383 call s:Doxygen_Hilights_Base()
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
384
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
385 fun! s:Doxygen_Hilights()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
386 " Pick a sensible default for 'codeword'.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
387 let font=''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
388 if exists('g:doxygen_codeword_font')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
389 if g:doxygen_codeword_font !~ '\<\k\+='
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
390 let font='font='.g:doxygen_codeword_font
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
391 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
392 let font=g:doxygen_codeword_font
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
393 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
394 else
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
395 " Try and pick a font (only some platforms have been tested).
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
396 if has('gui_running')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
397 if has('gui_gtk2')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
398 if &guifont == ''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
399 let font="font='FreeSerif 12'"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
400 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
401 let font="font='".substitute(&guifont, '^.\{-}\([0-9]\+\)$', 'FreeSerif \1','')."'"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
402 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
403
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
404 elseif has('gui_win32') || has('gui_win16') || has('gui_win95')
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
405
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
406 if exists('g:doxygen_use_bitsream_vera') && g:doxygen_use_bitsream_vera
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
407 let font_base='Bitstream_Vera_Sans_Mono'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
408 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
409 let font_base='Lucida_Console'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
410 endif
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
411 if &guifont == ''
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
412 let font='font='.font_base.':h10'
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
413 else
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
414 let font='font='.matchstr(substitute(&guifont, '^[^:]*', font_base,''),'[^,]*')
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
415 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
416 elseif has('gui_athena') || has('gui_gtk') || &guifont=~'^\(-[^-]\+\)\{14}'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
417 if &guifont == ''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
418 let font='font=-b&h-lucidatypewriter-medium-r-normal-*-*-140-*-*-m-*-iso8859-1'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
419 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
420 " let font='font='.substitute(&guifont,'^\(-[^-]\+\)\{7}-\([0-9]\+\).*', '-b\&h-lucidatypewriter-medium-r-normal-*-*-\2-*-*-m-*-iso8859-1','')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
421 " The above line works, but it is hard to expect the combination of
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
422 " the two fonts will look good.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
423 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
424 elseif has('gui_kde')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
425 " let font='font=Bitstream\ Vera\ Sans\ Mono/12/-1/5/50/0/0/0/0/0'
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
426 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
427 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
428 endif
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
429 if font=='' | let font='gui=bold' | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
430 exe 'SynColor doxygenCodeWord term=bold cterm=bold '.font
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
431 if (exists('g:doxygen_enhanced_color') && g:doxygen_enhanced_color) || (exists('g:doxygen_enhanced_colour') && g:doxygen_enhanced_colour)
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
432 if &background=='light'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
433 SynColor doxygenComment ctermfg=DarkRed guifg=DarkRed
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
434 SynColor doxygenBrief cterm=bold ctermfg=Cyan guifg=DarkBlue gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
435 SynColor doxygenBody ctermfg=DarkBlue guifg=DarkBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
436 SynColor doxygenSpecialTypeOnelineDesc cterm=bold ctermfg=DarkRed guifg=firebrick3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
437 SynColor doxygenBOther cterm=bold ctermfg=DarkMagenta guifg=#aa50aa gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
438 SynColor doxygenParam ctermfg=DarkGray guifg=#aa50aa
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
439 SynColor doxygenParamName cterm=italic ctermfg=DarkBlue guifg=DeepSkyBlue4 gui=italic,bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
440 SynColor doxygenSpecialOnelineDesc cterm=bold ctermfg=DarkCyan guifg=DodgerBlue3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
441 SynColor doxygenSpecialHeading cterm=bold ctermfg=DarkBlue guifg=DeepSkyBlue4 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
442 SynColor doxygenPrev ctermfg=DarkGreen guifg=DarkGreen
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
443 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
444 SynColor doxygenComment ctermfg=LightRed guifg=LightRed
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
445 SynColor doxygenBrief cterm=bold ctermfg=Cyan ctermbg=darkgrey guifg=LightBlue gui=Bold,Italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
446 SynColor doxygenBody ctermfg=Cyan guifg=LightBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
447 SynColor doxygenSpecialTypeOnelineDesc cterm=bold ctermfg=Red guifg=firebrick3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
448 SynColor doxygenBOther cterm=bold ctermfg=Magenta guifg=#aa50aa gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
449 SynColor doxygenParam ctermfg=LightGray guifg=LightGray
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
450 SynColor doxygenParamName cterm=italic ctermfg=LightBlue guifg=LightBlue gui=italic,bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
451 SynColor doxygenSpecialOnelineDesc cterm=bold ctermfg=LightCyan guifg=LightCyan gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
452 SynColor doxygenSpecialHeading cterm=bold ctermfg=LightBlue guifg=LightBlue gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
453 SynColor doxygenPrev ctermfg=LightGreen guifg=LightGreen
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
454 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
455 else
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
456 SynLink doxygenComment SpecialComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
457 SynLink doxygenBrief Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
458 SynLink doxygenBody Comment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
459 SynLink doxygenSpecialTypeOnelineDesc Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
460 SynLink doxygenBOther Constant
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
461 SynLink doxygenParam SpecialComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
462 SynLink doxygenParamName Underlined
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
463 SynLink doxygenSpecialOnelineDesc Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
464 SynLink doxygenSpecialHeading Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
465 SynLink doxygenPrev SpecialComment
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
466 endif
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
467 endfun
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
468
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
469 call s:Doxygen_Hilights()
834
5117153003bd updated for version 7.0e
vimboss
parents: 831
diff changeset
470
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
471 " This is still a proposal, but won't do any harm.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
472 aug doxygengroup
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
473 au!
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
474 au Syntax UserColor_reset nested call s:Doxygen_Hilights_Base()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
475 au Syntax UserColor_{on,reset,enable} nested call s:Doxygen_Hilights()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
476 aug END
834
5117153003bd updated for version 7.0e
vimboss
parents: 831
diff changeset
477
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
478
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
479 SynLink doxygenBody Comment
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
480 SynLink doxygenLine doxygenBody
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
481 SynLink doxygenTODO Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
482 SynLink doxygenOtherTODO Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
483 SynLink doxygenOtherWARN Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
484 SynLink doxygenOtherBUG Todo
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
485
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
486 SynLink doxygenErrorSpecial Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
487 SynLink doxygenErrorEnd Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
488 SynLink doxygenErrorComment Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
489 SynLink doxygenLinkError Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
490 SynLink doxygenBriefSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
491 SynLink doxygenHashSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
492 SynLink doxygenGroupDefineSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
493 SynLink doxygenEndlinkSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
494 SynLink doxygenCodeRegionSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
495 SynLink doxygenVerbatimRegionSpecial doxygenSpecial
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
496 SynLink doxygenDotRegionSpecial doxygenSpecial
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
497 SynLink doxygenGroupDefine doxygenParam
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
498
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
499 SynLink doxygenSpecialMultilineDesc doxygenSpecialOnelineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
500 SynLink doxygenFormulaEnds doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
501 SynLink doxygenBold doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
502 SynLink doxygenBriefWord doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
503 SynLink doxygenRetval doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
504 SynLink doxygenOther doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
505 SynLink doxygenStart doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
506 SynLink doxygenStart2 doxygenStart
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
507 SynLink doxygenComment2 doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
508 SynLink doxygenCommentL doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
509 SynLink doxygenContinueComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
510 SynLink doxygenSpecialContinueComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
511 SynLink doxygenSkipComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
512 SynLink doxygenEndComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
513 SynLink doxygenStartL doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
514 SynLink doxygenBriefEndComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
515 SynLink doxygenPrevL doxygenPrev
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
516 SynLink doxygenBriefL doxygenBrief
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
517 SynLink doxygenBriefLine doxygenBrief
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
518 SynLink doxygenHeaderLine doxygenSpecialHeading
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
519 SynLink doxygenStartSkip doxygenContinueComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
520 SynLink doxygenLinkWord doxygenParamName
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
521 SynLink doxygenLinkRest doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
522 SynLink doxygenHyperLink doxygenLinkWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
523 SynLink doxygenHashLink doxygenLinkWord
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
524
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
525 SynLink doxygenPage doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
526 SynLink doxygenPagePage doxygenBOther
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
527 SynLink doxygenPageIdent doxygenParamName
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
528 SynLink doxygenPageDesc doxygenSpecialTypeOnelineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
529
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
530 SynLink doxygenSpecialIdent doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
531 SynLink doxygenSpecialSectionDesc doxygenSpecialMultilineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
532
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
533 SynLink doxygenSpecialRefWord doxygenOther
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
534 SynLink doxygenRefWord doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
535 SynLink doxygenContinueLinkComment doxygenComment
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
536
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
537 SynLink doxygenHtmlCh Function
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
538 SynLink doxygenHtmlCmd Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
539 SynLink doxygenHtmlBoldItalicUnderline doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
540 SynLink doxygenHtmlUnderlineBold doxygenHtmlBoldUnderline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
541 SynLink doxygenHtmlUnderlineItalicBold doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
542 SynLink doxygenHtmlUnderlineBoldItalic doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
543 SynLink doxygenHtmlItalicUnderline doxygenHtmlUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
544 SynLink doxygenHtmlItalicBold doxygenHtmlBoldItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
545 SynLink doxygenHtmlItalicBoldUnderline doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
546 SynLink doxygenHtmlItalicUnderlineBold doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
547 SynLink doxygenHtmlLink Underlined
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
548
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
549 SynLink doxygenParamDirection StorageClass
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
550
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
551
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
552 if !exists("doxygen_my_rendering") && !exists("html_my_rendering")
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
553 SynColor doxygenBoldWord term=bold cterm=bold gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
554 SynColor doxygenEmphasisedWord term=italic cterm=italic gui=italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
555 SynLink doxygenArgumentWord doxygenEmphasisedWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
556 SynLink doxygenHtmlCode doxygenCodeWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
557 SynLink doxygenHtmlBold doxygenBoldWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
558 SynColor doxygenHtmlBoldUnderline term=bold,underline cterm=bold,underline gui=bold,underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
559 SynColor doxygenHtmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
560 SynColor doxygenHtmlBoldUnderlineItalic term=bold,italic,underline cterm=bold,italic,underline gui=bold,italic,underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
561 SynColor doxygenHtmlUnderline term=underline cterm=underline gui=underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
562 SynColor doxygenHtmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
563 SynColor doxygenHtmlItalic term=italic cterm=italic gui=italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
564 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
565
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
566 finally
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
567 if s:my_synlink | delcommand SynLink | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
568 if s:my_syncolor | delcommand SynColor | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
569 endtry
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
570
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
571 if &syntax=='idl'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
572 syn cluster idlCommentable add=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
573 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
574
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
575 "syn sync clear
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
576 "syn sync maxlines=500
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
577 "syn sync minlines=50
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
578 syn sync match doxygenComment groupthere cComment "/\@<!/\*"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
579 syn sync match doxygenSyncComment grouphere doxygenComment "/\@<!/\*[*!]"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
580 "syn sync match doxygenSyncComment grouphere doxygenComment "/\*[*!]" contains=doxygenStart,doxygenTODO keepend
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
581 syn sync match doxygenSyncEndComment groupthere NONE "\*/"
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
582
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
583 if !exists('b:current_syntax')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
584 let b:current_syntax = "doxygen"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
585 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
586 let b:current_syntax = b:current_syntax.'.doxygen'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
587 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
588
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
589 finally
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
590 let &cpo = s:cpo_save
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
591 unlet s:cpo_save
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
592 endtry
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
593
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
594 " vim:et sw=2 sts=2