annotate runtime/syntax/doxygen.vim @ 835:8bebcabccc2c v7.0e01

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