annotate runtime/syntax/doxygen.vim @ 17907:4cf69f8d1ec6 v8.1.1950

patch 8.1.1950: using NULL pointer after an out-of-memory Commit: https://github.com/vim/vim/commit/4bbfb0f3cc67c00c8cee4e47283e8d760025219d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 31 15:28:02 2019 +0200 patch 8.1.1950: using NULL pointer after an out-of-memory Problem: Using NULL pointer after an out-of-memory. Solution: Check for NULL pointer. (Dominique Pelle, closes https://github.com/vim/vim/issues/4881)
author Bram Moolenaar <Bram@vim.org>
date Sat, 31 Aug 2019 15:30:04 +0200
parents 1578c0ba0dd1
children fab58304f77d
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
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
5 " Last Change: November 2017 (\throws by Candy Gumdrop)
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
6 " Version: 1.27
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
7 "
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
8 " Copyright 2004-2017 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
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
61 syn match doxygenCommentWhite +\s*\ze/\*\(\*/\)\@![*!]+ containedin=phpRegion
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
62 syn match doxygenCommentWhite +\s*\ze//[/!]+ containedin=phpRegion
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
63 syn match doxygenCommentWhite +\s*\ze/\*\(\*/\)\@![*!]+
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
64 syn match doxygenCommentWhite +\s*\ze//[/!]+ containedin=phpRegion
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
65
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
66 syn region doxygenComment start=+/\*\(\*/\)\@![*!]+ end=+\*/+ contains=doxygenSyncStart,doxygenStart,doxygenTODO,doxygenLeadingWhite keepend fold containedin=phpRegion
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
67 syn region doxygenCommentL start=+//[/!]<\@!+me=e-1 end=+$+ contains=doxygenLeadingLWhite,doxygenStartL,@Spell keepend skipwhite skipnl nextgroup=doxygenCommentWhite2 fold containedin=phpRegion
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1125
diff changeset
68 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
69 syn region doxygenCommentL start=+//@\ze[{}]+ end=+$+ contains=doxygenGroupDefine,doxygenGroupDefineSpecial,@Spell fold containedin=phpRegion
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
70 syn region doxygenComment start=+/\*@\ze[{}]+ end=+\*/+ contains=doxygenGroupDefine,doxygenGroupDefineSpecial,@Spell fold containedin=phpRegion
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
71
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
72 " Single line brief followed by multiline comment.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
73 syn match doxygenCommentWhite2 +\_s*\ze/\*\(\*/\)\@![*!]+ contained nextgroup=doxygenComment2
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
74 syn region doxygenComment2 start=+/\*\(\*/\)\@![*!]+ end=+\*/+ contained contains=doxygenSyncStart2,doxygenStart2,doxygenTODO keepend fold
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
75 " 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
76 syn match doxygenSyncStart2 +[^*/]+ contained nextgroup=doxygenBody,doxygenPrev,doxygenStartSpecial,doxygenSkipComment,doxygenStartSkip2 skipwhite skipnl
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
77
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
78 " Skip empty lines at the start for when comments start on the 2nd/3rd line.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
79 syn match doxygenStartSkip2 +^\s*\*[^/]+me=e-1 contained nextgroup=doxygenBody,doxygenStartSpecial,doxygenStartSkipWhite skipwhite skipnl
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
80 syn match doxygenStartSkip2 +^\s*\*$+ contained nextgroup=doxygenBody,doxygenStartSpecial,doxygenStartSkipWhite skipwhite skipnl
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
81 syn match doxygenStart2 +/\*[*!]+ contained nextgroup=doxygenBody,doxygenPrev,doxygenStartSpecial,doxygenStartSkip2 skipwhite skipnl
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
82
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
83
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
84 " Match the Starting pattern (effectively creating the start of a BNF)
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
85 if !exists('g:doxygen_javadoc_autobrief') || g:doxygen_javadoc_autobrief
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
86 syn match doxygenStart +/\*[*!]+ contained nextgroup=doxygenBrief,doxygenPrev,doxygenFindBriefSpecial,doxygenStartSpecial,doxygenStartSkipWhite,doxygenPage skipwhite skipnl
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
87 syn match doxygenLeadingLWhite +\s\++ contained nextgroup=doxygenPrevL,doxygenBriefL,doxygenSpecial
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
88 syn match doxygenStartL +//[/!]+ contained nextgroup=doxygenLeaingLWhite,doxygenPrevL,doxygenBriefL,doxygenSpecial
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
89 " Match the first sentence as a brief comment
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
90 if ! exists('g:doxygen_end_punctuation')
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
91 let g:doxygen_end_punctuation='[.]'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
92 endif
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
93
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
94 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,doxygenContinueCommentWhite,doxygenLeadingWhite,doxygenBriefEndComment,doxygenFindBriefSpecial,doxygenSmallSpecial,@doxygenHtmlGroup,doxygenTODO,doxygenHyperLink,doxygenHashLink,@Spell skipnl nextgroup=doxygenBody'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
95
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
96 syn match doxygenBriefEndComment +\*/+ contained
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
97
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
98 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
99 syn match doxygenPrevL +<+ contained nextgroup=doxygenBriefL,doxygenSpecial skipwhite
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
100 else
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
101 syn match doxygenStart +/\*[*!]+ contained nextgroup=doxygenBody,doxygenPrev,doxygenFindBriefSpecial,doxygenStartSpecial,doxygenStartSkipWhite,doxygenPage skipwhite skipnl
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
102 syn match doxygenStartL +//[/!]+ contained nextgroup=doxygenLeadingLWhite,doxygenPrevL,doxygenLine,doxygenSpecial
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
103 syn match doxygenLeadingLWhite +\s\++ contained nextgroup=doxygenPrevL,doxygenLine,doxygenSpecial
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
104 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
105 syn match doxygenPrevL +<+ contained nextgroup=doxygenLine,doxygenSpecial skipwhite
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
106
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
107 endif
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 " This helps with sync-ing as for some reason, syncing behaves differently to a normal region, and the start pattern does not get matched.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
110 syn match doxygenSyncStart +\ze[^*/]+ contained nextgroup=doxygenBrief,doxygenPrev,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkipWhite,doxygenPage skipwhite skipnl
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
111 " Match an [@\]brief so that it moves to body-mode.
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
112 "
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
113 "
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
114 " syn match doxygenBriefLine contained
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
115 syn match doxygenBriefSpecial contained +[@\\]+ nextgroup=doxygenBriefWord skipwhite
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
116 " syn region doxygenFindBriefSpecial start=+[@\\]brief\>+ end=+\(\n\s*\*\=\s*\([@\\]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\@!\)\|\s*$\)\@=+ keepend contains=doxygenBriefSpecial nextgroup=doxygenBody keepend skipwhite skipnl contained
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
117 syn region doxygenFindBriefSpecial start=+[@\\]brief\>+ skip=+^\s*\(\*/\@!\s*\)\=\(\<\|[@\\]\<\([npcbea]\>\|em\>\|ref\|link\>\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@*]\)+ end=+^+ keepend contains=doxygenBriefSpecial nextgroup=doxygenBody keepend skipwhite skipnl contained
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
118
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
119
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
120
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
121 " end=+\(\n\s*\*\=\s*\([@\\]\([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)\@!\)\|\s*$\)\@=+
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
122 "syn region doxygenBriefLine contained start=+\<\k+ skip=+^\s*\(\*/\@!\s*\)\=\(\<\|[@\\]\<\([npcbea]\>\|em\>\|ref\|link\>\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@*]\)+ end=+^+ contains=doxygenContinueCommentWhite,doxygenSmallSpecial,@doxygenHtmlGroup,doxygenTODO,doxygenHyperLink,doxygenHashLink,@Spell skipwhite keepend matchgroup=xxx
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
123 syn region doxygenBriefLine contained start=+\<\k+ skip=+^\s*\(\*/\@!\s*\)\=\(\<\|[@\\]\<\([npcbea]\>\|em\>\|ref\|link\>\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@*]\)+ end=+^+ skipwhite keepend matchgroup=xxx
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
124 " syn region doxygenBriefLine matchgroup=xxxy contained start=+\<\k.\++ skip=+^\s*\k+ end=+end+ skipwhite keepend
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
125 "doxygenFindBriefSpecial,
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
126 "" syn region doxygenSpecialMultilineDesc start=+.\++ contained contains=doxygenSpecialContinueCommentWhite,doxygenSmallSpecial,doxygenHyperLink,doxygenHashLink,@doxygenHtmlGroup,@Spell skipwhite keepend
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
127
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
128
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
129 " Match a '<' for applying a comment to the previous element.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
130 syn match doxygenPrev +<+ contained nextgroup=doxygenBrief,doxygenBody,doxygenSpecial,doxygenStartSkipWhite skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
131
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
132 if exists("c_comment_strings")
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
133 " 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
134 " then turn the comments back into normal C comments.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
135 syn region cComment start="/\*\*\*" end="\*/" contains=@cCommentGroup,cCommentString,cCharacter,cNumbersCom,cSpaceError
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
136 syn region cCommentL start="////" skip="\\$" end="$" contains=@cCommentGroup,cComment2String,cCharacter,cNumbersCom,cSpaceError
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
137 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
138 syn region cComment start="/\*\*\*" end="\*/" contains=@cCommentGroup,cSpaceError
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
139 syn region cCommentL start="////" skip="\\$" end="$" contains=@cCommentGroup,cSpaceError
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
140 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
141
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
142 " Special commands at the start of the area: starting with '@' or '\'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
143 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
144 syn match doxygenSkipComment contained +^\s*\*/\@!+ nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenPage skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
145
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
146 "syn region doxygenBodyBit contained start=+$+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
147
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
148 " The main body of a doxygen comment.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
149 syn region doxygenBody contained start=+\(/\*[*!]\)\@<!<\|[^<]\|$+ matchgroup=doxygenEndComment end=+\*/+re=e-2,me=e-2 contains=doxygenContinueCommentWhite,doxygenTODO,doxygenSpecial,doxygenSmallSpecial,doxygenHyperLink,doxygenHashLink,@doxygenHtmlGroup,@Spell
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
150
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
151 " These allow the skipping of comment continuation '*' characters.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
152 syn match doxygenContinueCommentWhite contained +^\s*\ze\*+ nextgroup=doxygenContinueComment
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
153 syn match doxygenContinueComment contained +\*/\@!+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
154
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
155 " Catch a Brief comment without punctuation - flag it as an error but
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
156 " make sure the end comment is picked up also.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
157 syn match doxygenErrorComment contained +\*/+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
158
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
159
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
160 " 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
161 if !exists('g:doxygen_javadoc_autobrief') || g:doxygen_javadoc_autobrief
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
162 syn match doxygenStartSkipWhite +^\s*\ze\*/\@!+ contained nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkipWhite,doxygenPage skipwhite skipnl
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
163 "syn match doxygenStartSkipWhite +^\s*\ze\*$+ contained nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkipWhite,doxygenPage skipwhite skipnl
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
164 else
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
165 syn match doxygenStartSkipWhite +^\s*\*[^/]+me=e-1 contained nextgroup=doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkipWhite,doxygenPage,doxygenBody skipwhite skipnl
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
166 syn match doxygenStartSkipWhite +^\s*\*$+ contained nextgroup=doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkipWhite,doxygenPage,doxygenBody skipwhite skipnl
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
167 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
168
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
169 " Create the single word matching special identifiers.
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 fun! s:DxyCreateSmallSpecial( kword, name )
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 let mx='[-:0-9A-Za-z_%=&+*/!~>|]\@<!\([-0-9A-Za-z_%=+*/!~>|#]\+[-0-9A-Za-z_%=+*/!~>|]\@!\|\\[\\<>&.]@\|[.,][0-9a-zA-Z_]\@=\|::\|([^)]*)\|&[0-9a-zA-Z]\{2,7};\)\+'
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
174 exe 'syn region doxygenSpecial'.a:name.'Word contained start=+'.a:kword.'+ end=+\(\_s\+'.mx.'\)\@<=[-a-zA-Z_0-9+*/^%|~!=&\\]\@!+ skipwhite contains=doxygenContinueCommentWhite,doxygen'.a:name.'Word'
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
175 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
176 endfun
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
177 call s:DxyCreateSmallSpecial('p', 'Code')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
178 call s:DxyCreateSmallSpecial('c', 'Code')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
179 call s:DxyCreateSmallSpecial('b', 'Bold')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
180 call s:DxyCreateSmallSpecial('e', 'Emphasised')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
181 call s:DxyCreateSmallSpecial('em', 'Emphasised')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
182 call s:DxyCreateSmallSpecial('a', 'Argument')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
183 call s:DxyCreateSmallSpecial('ref', 'Ref')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
184 delfun s:DxyCreateSmallSpecial
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
185
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
186 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
187
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
188 " Now for special characters
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
189 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
190 " doxygenOtherLink,doxygenSymbol,doxygenFormula,doxygenErrorSpecial,doxygenSpecial.*Word
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
191 "
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
192 syn match doxygenGroupDefine contained +@\@<=[{}]+
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
193 syn match doxygenGroupDefineSpecial contained +@\ze[{}]+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
194
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
195 syn match doxygenErrorSpecial contained +\s+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
196
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
197 " Match parameters and retvals (highlighting the first word as special).
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
198 syn match doxygenParamDirection contained "\v\[(\s*in>((]\s*\[|\s*,\s*)out>)=|out>((]\s*\[|\s*,\s*)in>)=)\]" nextgroup=doxygenParamName skipwhite
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
199 syn keyword doxygenParam contained param nextgroup=doxygenParamName,doxygenParamDirection skipwhite
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
200 syn keyword doxygenTParam contained tparam nextgroup=doxygenParamName skipwhite
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
201 syn match doxygenParamName contained +[A-Za-z0-9_:]\++ nextgroup=doxygenSpecialMultilineDesc skipwhite
12785
65d7fd8381a3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5277
diff changeset
202 syn keyword doxygenRetval contained retval throw throws exception nextgroup=doxygenParamName skipwhite
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 " Match one line identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
205 syn keyword doxygenOther contained addindex anchor
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
206 \ dontinclude endhtmlonly endlatexonly showinitializer hideinitializer
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
207 \ example htmlonly image include includelineno ingroup internal latexonly line
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
208 \ overload relates relatesalso sa skip skipline
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
209 \ until verbinclude version addtogroup htmlinclude copydoc dotfile
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
210 \ xmlonly endxmlonly
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
211 \ nextgroup=doxygenSpecialOnelineDesc copybrief copydetails copyright dir extends
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
212 \ implements
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
213
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
214 syn region doxygenCodeRegion contained matchgroup=doxygenOther start=+\<code\>+ matchgroup=doxygenOther end=+[\\@]\@<=\<endcode\>+ contains=doxygenCodeRegionSpecial,doxygenContinueCommentWhite,doxygenErrorComment,@NoSpell
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
215 syn match doxygenCodeRegionSpecial contained +[\\@]\(endcode\>\)\@=+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
216
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
217 syn region doxygenVerbatimRegion contained matchgroup=doxygenOther start=+\<verbatim\>+ matchgroup=doxygenOther end=+[\\@]\@<=\<endverbatim\>+ contains=doxygenVerbatimRegionSpecial,doxygenContinueCommentWhite,doxygenErrorComment,@NoSpell
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
218 syn match doxygenVerbatimRegionSpecial contained +[\\@]\(endverbatim\>\)\@=+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
219
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
220 if exists('b:current_syntax')
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
221 let b:doxygen_syntax_save=b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
222 unlet b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
223 endif
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
224
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
225 syn include @Dotx syntax/dot.vim
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
226
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
227 if exists('b:doxygen_syntax_save')
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
228 let b:current_syntax=b:doxygen_syntax_save
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
229 unlet b:doxygen_syntax_save
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
230 else
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
231 unlet b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
232 endif
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
233
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
234 syn region doxygenDotRegion contained matchgroup=doxygenOther start=+\<dot\>+ matchgroup=doxygenOther end=+[\\@]\@<=\<enddot\>+ contains=doxygenDotRegionSpecial,doxygenErrorComment,doxygenContinueCommentWhite,@NoSpell,@Dotx
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
235 syn match doxygenDotRegionSpecial contained +[\\@]\(enddot\>\)\@=+
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 " Match single line identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
238 syn keyword doxygenBOther contained class enum file fn mainpage interface
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
239 \ namespace struct typedef union var def name
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
240 \ nextgroup=doxygenSpecialTypeOnelineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
241
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
242 syn keyword doxygenOther contained par nextgroup=doxygenHeaderLine
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
243 syn region doxygenHeaderLine start=+.+ end=+^+ contained skipwhite nextgroup=doxygenSpecialMultilineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
244
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
245 syn keyword doxygenOther contained arg author authors 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
246 syn keyword doxygenOtherTODO contained todo attention nextgroup=doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
247 syn keyword doxygenOtherWARN contained warning nextgroup=doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
248 syn keyword doxygenOtherBUG contained bug nextgroup=doxygenSpecialMultilineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
249
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
250 " Handle \link, \endlink, highlighting the link-to and the link text bits separately.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
251 syn region doxygenOtherLink matchgroup=doxygenOther start=+\<link\>+ end=+[\@]\@<=endlink\>+ contained contains=doxygenLinkWord,doxygenContinueCommentWhite,doxygenLinkError,doxygenEndlinkSpecial
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
252 syn match doxygenEndlinkSpecial contained +[\\@]\zeendlink\>+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
253
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
254 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
255 syn match doxygenLinkRest +[^*@\\]\|\*/\@!\|[@\\]\(endlink\>\)\@!+ contained skipnl nextgroup=doxygenLinkRest,doxygenContinueLinkComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
256 syn match doxygenContinueLinkComment contained +^\s*\*\=[^/]+me=e-1 nextgroup=doxygenLinkRest
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
257 syn match doxygenLinkError "\*/" contained
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
258 " #Link hilighting.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
259 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
260 syn match doxygenHashSpecial /#/ contained
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
261 syn match doxygenHyperLink /\(\s\|^\s*\*\?\)\@<=\(http\|https\|ftp\):\/\/[-0-9a-zA-Z_?&=+#%/.!':;@~]\+/ contained
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 " Handle \page. This does not use doxygenBrief.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
264 syn match doxygenPage "[\\@]page\>"me=s+1 contained skipwhite nextgroup=doxygenPagePage
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
265 syn keyword doxygenPagePage page contained skipwhite nextgroup=doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
266 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
267 syn match doxygenPageIdent "\<[a-zA-Z_0-9]\+\>" contained nextgroup=doxygenPageDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
268
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
269 " Handle section
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
270 syn keyword doxygenOther defgroup section subsection subsubsection weakgroup contained skipwhite nextgroup=doxygenSpecialIdent
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
271 syn region doxygenSpecialSectionDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend skipwhite skipnl nextgroup=doxygenContinueCommentWhite
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
272 syn match doxygenSpecialIdent "\<[a-zA-Z_0-9]\+\>" contained nextgroup=doxygenSpecialSectionDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
273
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
274 " Does the one-line description for the one-line type identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
275 syn region doxygenSpecialTypeOnelineDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
276 syn region doxygenSpecialOnelineDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend
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 " Handle the multiline description for the multiline type identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
279 " Continue until an 'empty' line (can contain a '*' continuation) or until the
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
280 " next whole-line @ command \ command.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
281 syn region doxygenSpecialMultilineDesc start=+.\++ skip=+^\s*\(\*/\@!\s*\)\=\(\<\|[@\\]\<\([npcbea]\>\|em\>\|ref\|link\>\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@*]\)+ end=+^+ contained contains=doxygenSpecialContinueCommentWhite,doxygenSmallSpecial,doxygenHyperLink,doxygenHashLink,@doxygenHtmlGroup,@Spell skipwhite keepend
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
282
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
283 " syn match doxygenSpecialContinueComment contained +^\s*\*/\@!\s*+ nextgroup=doxygenSpecial skipwhite
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
284 syn match doxygenSpecialContinueCommentWhite contained +^\s*\ze\*+ nextgroup=doxygenSpecialContinueComment
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
285 syn match doxygenSpecialContinueComment contained +\*/\@!+
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
286
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 " Handle special cases 'bold' and 'group'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
289 syn keyword doxygenBold contained bold nextgroup=doxygenSpecialHeading
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
290 syn keyword doxygenBriefWord contained brief nextgroup=doxygenBriefLine skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
291 syn match doxygenSpecialHeading +.\++ contained skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
292 syn keyword doxygenGroup contained group nextgroup=doxygenGroupName skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
293 syn keyword doxygenGroupName contained +\k\++ nextgroup=doxygenSpecialOnelineDesc skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
294
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
295 " Handle special symbol identifiers @$, @\, @$ etc
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
296 syn match doxygenSymbol contained +[$\\&<>#n]+
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 " Simplistic handling of formula regions
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
299 syn region doxygenFormula contained matchgroup=doxygenFormulaEnds start=+f\$+ end=+[@\\]f\$+ contains=doxygenFormulaSpecial,doxygenFormulaOperator
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
300 syn match doxygenFormulaSpecial contained +[@\\]\(f[^$]\|[^f]\)+me=s+1 nextgroup=doxygenFormulaKeyword,doxygenFormulaEscaped
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
301 syn match doxygenFormulaEscaped contained "."
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
302 syn match doxygenFormulaKeyword contained "[a-z]\+"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
303 syn match doxygenFormulaOperator contained +[_^]+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
304
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
305 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
306 syn region doxygenAtom contained transparent matchgroup=doxygenFormulaOperator start=+{+ end=+}+ contains=doxygenAtom,doxygenFormulaSpecial,doxygenFormulaOperator
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
307
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
308 " Add TODO hilighting.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
309 syn keyword doxygenTODO contained TODO README XXX FIXME
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 " Supported HTML subset. Not perfect, but okay.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
312 syn case ignore
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
313 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,doxygenContinueCommentWhite,doxygenHtmlVar
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
314 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
315 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
316 syn match doxygenHtmlEqu contained +=+ nextgroup=doxygenHtmlExpr skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
317 syn match doxygenHtmlExpr contained +"\(\\.\|[^"]\)*"\|'\(\\.\|[^']\)*'+ nextgroup=doxygenHtmlVar skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
318 syn case match
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
319 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
320
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
321 syn cluster doxygenHtmlGroup contains=doxygenHtmlCode,doxygenHtmlBold,doxygenHtmlUnderline,doxygenHtmlItalic,doxygenHtmlSpecial,doxygenHtmlTag,doxygenHtmlLink
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
322
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
323 syn cluster doxygenHtmlTop contains=@Spell,doxygenHtmlSpecial,doxygenHtmlTag,doxygenContinueCommentWhite
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
324 " Html Support
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
325 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
326 hi link doxygenHtmlLink Underlined
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
327
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
328 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
329 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
330 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
331 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
332 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
333 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
334 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
335 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
336
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
337 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
338 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
339 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
340 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
341 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
342 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
343 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
344 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
345 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
346
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
347 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
348 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
349 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
350 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
351 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
352 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
353 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
354 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
355
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
356 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
357
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
358 " Prevent the doxygen contained matches from leaking into the c/rc groups.
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
359 syn cluster cParenGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
360 syn cluster cParenGroup remove=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
361 syn cluster cPreProcGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
362 syn cluster cMultiGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
363 syn cluster rcParenGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
364 syn cluster rcParenGroup remove=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
365 syn cluster rcGroup add=doxygen.*
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 let s:my_syncolor=0
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
368 if !exists(':SynColor')
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
369 command -nargs=+ SynColor hi def <args>
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
370 let s:my_syncolor=1
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
371 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
372
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
373 let s:my_synlink=0
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
374 if !exists(':SynLink')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
375 command -nargs=+ SynLink hi def link <args>
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
376 let s:my_synlink=1
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
377 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
378
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
379 try
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
380 "let did_doxygen_syntax_inits = &background
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
381 hi doxygen_Dummy guifg=black
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
382
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
383 fun! s:Doxygen_Hilights_Base()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
384 SynLink doxygenHtmlSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
385 SynLink doxygenHtmlVar Type
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
386 SynLink doxygenHtmlExpr String
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
387
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
388 SynLink doxygenSmallSpecial SpecialChar
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
389
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
390 SynLink doxygenSpecialCodeWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
391 SynLink doxygenSpecialBoldWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
392 SynLink doxygenSpecialEmphasisedWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
393 SynLink doxygenSpecialArgumentWord doxygenSmallSpecial
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
394
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
395 " SynColor doxygenFormulaKeyword cterm=bold ctermfg=DarkMagenta guifg=DarkMagenta gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
396 SynLink doxygenFormulaKeyword Keyword
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
397 "SynColor doxygenFormulaEscaped ctermfg=DarkMagenta guifg=DarkMagenta gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
398 SynLink doxygenFormulaEscaped Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
399 SynLink doxygenFormulaOperator Operator
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
400 SynLink doxygenFormula Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
401 SynLink doxygenSymbol Constant
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
402 SynLink doxygenSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
403 SynLink doxygenFormulaSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
404 "SynColor doxygenFormulaSpecial ctermfg=DarkBlue guifg=DarkBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
405 endfun
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
406 call s:Doxygen_Hilights_Base()
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
407
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
408 fun! s:Doxygen_Hilights()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
409 " Pick a sensible default for 'codeword'.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
410 let font=''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
411 if exists('g:doxygen_codeword_font')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
412 if g:doxygen_codeword_font !~ '\<\k\+='
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
413 let font='font='.g:doxygen_codeword_font
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
414 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
415 let font=g:doxygen_codeword_font
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
416 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
417 else
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
418 " Try and pick a font (only some platforms have been tested).
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
419 if has('gui_running')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
420 if has('gui_gtk2')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
421 if &guifont == ''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
422 let font="font='FreeSerif 12'"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
423 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
424 let font="font='".substitute(&guifont, '^.\{-}\([0-9]\+\)$', 'FreeSerif \1','')."'"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
425 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
426
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
427 elseif has('gui_win32') || has('gui_win16') || has('gui_win95')
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
428
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
429 if exists('g:doxygen_use_bitsream_vera') && g:doxygen_use_bitsream_vera
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
430 let font_base='Bitstream_Vera_Sans_Mono'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
431 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
432 let font_base='Lucida_Console'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
433 endif
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
434 if &guifont == ''
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
435 let font='font='.font_base.':h10'
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
436 else
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
437 let font='font='.matchstr(substitute(&guifont, '^[^:]*', font_base,''),'[^,]*')
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
438 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
439 elseif has('gui_athena') || has('gui_gtk') || &guifont=~'^\(-[^-]\+\)\{14}'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
440 if &guifont == ''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
441 let font='font=-b&h-lucidatypewriter-medium-r-normal-*-*-140-*-*-m-*-iso8859-1'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
442 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
443 " 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
444 " The above line works, but it is hard to expect the combination of
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
445 " the two fonts will look good.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
446 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
447 elseif has('gui_kde')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
448 " 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
449 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
450 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
451 endif
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
452 if font=='' | let font='gui=bold' | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
453 exe 'SynColor doxygenCodeWord term=bold cterm=bold '.font
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
454 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
455 if &background=='light'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
456 SynColor doxygenComment ctermfg=DarkRed guifg=DarkRed
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
457 SynColor doxygenBrief cterm=bold ctermfg=Cyan guifg=DarkBlue gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
458 SynColor doxygenBody ctermfg=DarkBlue guifg=DarkBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
459 SynColor doxygenSpecialTypeOnelineDesc cterm=bold ctermfg=DarkRed guifg=firebrick3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
460 SynColor doxygenBOther cterm=bold ctermfg=DarkMagenta guifg=#aa50aa gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
461 SynColor doxygenParam ctermfg=DarkGray guifg=#aa50aa
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
462 SynColor doxygenParamName cterm=italic ctermfg=DarkBlue guifg=DeepSkyBlue4 gui=italic,bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
463 SynColor doxygenSpecialOnelineDesc cterm=bold ctermfg=DarkCyan guifg=DodgerBlue3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
464 SynColor doxygenSpecialHeading cterm=bold ctermfg=DarkBlue guifg=DeepSkyBlue4 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
465 SynColor doxygenPrev ctermfg=DarkGreen guifg=DarkGreen
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
466 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
467 SynColor doxygenComment ctermfg=LightRed guifg=LightRed
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
468 SynColor doxygenBrief cterm=bold ctermfg=Cyan ctermbg=darkgrey guifg=LightBlue gui=Bold,Italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
469 SynColor doxygenBody ctermfg=Cyan guifg=LightBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
470 SynColor doxygenSpecialTypeOnelineDesc cterm=bold ctermfg=Red guifg=firebrick3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
471 SynColor doxygenBOther cterm=bold ctermfg=Magenta guifg=#aa50aa gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
472 SynColor doxygenParam ctermfg=LightGray guifg=LightGray
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
473 SynColor doxygenParamName cterm=italic ctermfg=LightBlue guifg=LightBlue gui=italic,bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
474 SynColor doxygenSpecialOnelineDesc cterm=bold ctermfg=LightCyan guifg=LightCyan gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
475 SynColor doxygenSpecialHeading cterm=bold ctermfg=LightBlue guifg=LightBlue gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
476 SynColor doxygenPrev ctermfg=LightGreen guifg=LightGreen
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
477 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
478 else
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
479 SynLink doxygenComment SpecialComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
480 SynLink doxygenBrief Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
481 SynLink doxygenBody Comment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
482 SynLink doxygenSpecialTypeOnelineDesc Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
483 SynLink doxygenBOther Constant
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
484 SynLink doxygenParam SpecialComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
485 SynLink doxygenParamName Underlined
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
486 SynLink doxygenSpecialOnelineDesc Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
487 SynLink doxygenSpecialHeading Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
488 SynLink doxygenPrev SpecialComment
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
489 endif
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
490 endfun
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
491
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
492 call s:Doxygen_Hilights()
834
5117153003bd updated for version 7.0e
vimboss
parents: 831
diff changeset
493
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
494 syn match doxygenLeadingWhite +\(^\s*\*\)\@<=\s*+ contained
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
495
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
496 " This is still a proposal, but won't do any harm.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
497 aug doxygengroup
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
498 au!
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
499 au Syntax UserColor_reset nested call s:Doxygen_Hilights_Base()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
500 au Syntax UserColor_{on,reset,enable} nested call s:Doxygen_Hilights()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
501 aug END
834
5117153003bd updated for version 7.0e
vimboss
parents: 831
diff changeset
502
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
503
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
504 SynLink doxygenBody Comment
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
505 SynLink doxygenLine doxygenBody
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
506 SynLink doxygenTODO Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
507 SynLink doxygenOtherTODO Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
508 SynLink doxygenOtherWARN Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
509 SynLink doxygenOtherBUG Todo
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
510 SynLink doxygenLeadingLWhite doxygenBody
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
511
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
512 SynLink doxygenErrorSpecial Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
513 SynLink doxygenErrorEnd Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
514 SynLink doxygenErrorComment Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
515 SynLink doxygenLinkError Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
516 SynLink doxygenBriefSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
517 SynLink doxygenHashSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
518 SynLink doxygenGroupDefineSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
519 SynLink doxygenEndlinkSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
520 SynLink doxygenCodeRegionSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
521 SynLink doxygenVerbatimRegionSpecial doxygenSpecial
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
522 SynLink doxygenDotRegionSpecial doxygenSpecial
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
523 SynLink doxygenGroupDefine doxygenParam
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 doxygenSpecialMultilineDesc doxygenSpecialOnelineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
526 SynLink doxygenFormulaEnds doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
527 SynLink doxygenBold doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
528 SynLink doxygenBriefWord doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
529 SynLink doxygenRetval doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
530 SynLink doxygenOther doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
531 SynLink doxygenStart doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
532 SynLink doxygenStart2 doxygenStart
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
533 SynLink doxygenComment2 doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
534 SynLink doxygenCommentL doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
535 SynLink doxygenContinueComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
536 SynLink doxygenSpecialContinueComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
537 SynLink doxygenSkipComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
538 SynLink doxygenEndComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
539 SynLink doxygenStartL doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
540 SynLink doxygenBriefEndComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
541 SynLink doxygenPrevL doxygenPrev
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
542 SynLink doxygenBriefL doxygenBrief
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
543 SynLink doxygenBriefLine doxygenBrief
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
544 SynLink doxygenHeaderLine doxygenSpecialHeading
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
545 SynLink doxygenCommentWhite Normal
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
546 SynLink doxygenCommentWhite2 doxygenCommentWhite
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
547 SynLink doxygenContinueCommentWhite doxygenCommentWhite
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
548 SynLink doxygenStartSkipWhite doxygenContinueCommentWhite
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
549 SynLink doxygenLinkWord doxygenParamName
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
550 SynLink doxygenLinkRest doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
551 SynLink doxygenHyperLink doxygenLinkWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
552 SynLink doxygenHashLink doxygenLinkWord
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
553
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
554 SynLink doxygenPage doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
555 SynLink doxygenPagePage doxygenBOther
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
556 SynLink doxygenPageIdent doxygenParamName
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
557 SynLink doxygenPageDesc doxygenSpecialTypeOnelineDesc
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 SynLink doxygenSpecialIdent doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
560 SynLink doxygenSpecialSectionDesc doxygenSpecialMultilineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
561
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
562 SynLink doxygenSpecialRefWord doxygenOther
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
563 SynLink doxygenRefWord doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
564 SynLink doxygenContinueLinkComment doxygenComment
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 SynLink doxygenHtmlCh Function
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
567 SynLink doxygenHtmlCmd Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
568 SynLink doxygenHtmlBoldItalicUnderline doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
569 SynLink doxygenHtmlUnderlineBold doxygenHtmlBoldUnderline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
570 SynLink doxygenHtmlUnderlineItalicBold doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
571 SynLink doxygenHtmlUnderlineBoldItalic doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
572 SynLink doxygenHtmlItalicUnderline doxygenHtmlUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
573 SynLink doxygenHtmlItalicBold doxygenHtmlBoldItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
574 SynLink doxygenHtmlItalicBoldUnderline doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
575 SynLink doxygenHtmlItalicUnderlineBold doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
576 SynLink doxygenHtmlLink Underlined
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
577
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
578 SynLink doxygenParamDirection StorageClass
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
579
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
580
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
581 if !exists("doxygen_my_rendering") && !exists("html_my_rendering")
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
582 SynColor doxygenBoldWord term=bold cterm=bold gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
583 SynColor doxygenEmphasisedWord term=italic cterm=italic gui=italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
584 SynLink doxygenArgumentWord doxygenEmphasisedWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
585 SynLink doxygenHtmlCode doxygenCodeWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
586 SynLink doxygenHtmlBold doxygenBoldWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
587 SynColor doxygenHtmlBoldUnderline term=bold,underline cterm=bold,underline gui=bold,underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
588 SynColor doxygenHtmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
589 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
590 SynColor doxygenHtmlUnderline term=underline cterm=underline gui=underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
591 SynColor doxygenHtmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
592 SynColor doxygenHtmlItalic term=italic cterm=italic gui=italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
593 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
594
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
595 finally
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
596 if s:my_synlink | delcommand SynLink | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
597 if s:my_syncolor | delcommand SynColor | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
598 endtry
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
599
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
600 if &syntax=='idl'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
601 syn cluster idlCommentable add=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
602 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
603
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
604 "syn sync clear
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
605 "syn sync maxlines=500
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
606 "syn sync minlines=50
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
607 syn sync match doxygenComment groupthere cComment "/\@<!/\*"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
608 syn sync match doxygenSyncComment grouphere doxygenComment "/\@<!/\*[*!]"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
609 "syn sync match doxygenSyncComment grouphere doxygenComment "/\*[*!]" contains=doxygenStart,doxygenTODO keepend
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
610 syn sync match doxygenSyncEndComment groupthere NONE "\*/"
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
611
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
612 if !exists('b:current_syntax')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
613 let b:current_syntax = "doxygen"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
614 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
615 let b:current_syntax = b:current_syntax.'.doxygen'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
616 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
617
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
618 finally
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
619 let &cpo = s:cpo_save
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
620 unlet s:cpo_save
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
621 endtry
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
622 let suppress_doxygen=1
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
623 " vim:et sw=2 sts=2