annotate runtime/syntax/doxygen.vim @ 31301:eeb4d72e523d v9.0.0984

patch 9.0.0984: GUI: remote_foreground() does not always work Commit: https://github.com/vim/vim/commit/023930d62e898652e68c938c6d7ac232556cb7a9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 1 19:40:55 2022 +0000 patch 9.0.0984: GUI: remote_foreground() does not always work Problem: GUI: remote_foreground() does not always work. (Ron Aaron) Solution: For GTK use gtk_window_set_keep_above(). (issue https://github.com/vim/vim/issues/11641)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Dec 2022 20:45:04 +0100
parents dc4de65a7fb7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23305
diff changeset
1 " DoxyGen syntax highlighting 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
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
5 " Last Change: December 2020
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
6 " Version: 1.30
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
7 "
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
8 " Copyright 2004-2020 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
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23305
diff changeset
57 " Start of Doxygen syntax highlighting:
835
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
29290
dc4de65a7fb7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29269
diff changeset
123 syn region doxygenBriefLine contained start=+\<\k+ skip=+^\s*\(\*/\@!\s*\)\=\(\<\|[@\\]\<\([npcbea]\>\|em\>\|ref\|link\>\>\|f\$\|[$\\&<>#]\)\|[^ \t\\@*]\)+ end=+^+ skipwhite keepend matchgroup=xxx contains=@Spell
12909
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
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
173 let mx='[-:0-9A-Za-z_%=&+*/!~>|]\@<!\([-0-9A-Za-z_%=+*/!~>|#]\+[-0-9A-Za-z_%=+*/!~>|]\@!\|\\[\\<>&.]@\|[.,]\w\@=\|::\|([^)]*)\|&[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
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
189 syn match doxygenSpecial contained +[@\\]\(\<[npcbea]\>\|\<em\>\|\<ref\|\<link\>\>\|\<f\$\|[$\\&<>#]\)\@!+ nextgroup=doxygenParam,doxygenTParam,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
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
202 syn keyword doxygenRetval contained retval throw throws exception nextgroup=doxygenReturnValue skipwhite
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
203 syn match doxygenReturnValue contained +\S\++ nextgroup=doxygenSpecialMultilineDesc skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
204
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
205 " Match one line identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
206 syn keyword doxygenOther contained addindex anchor
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
207 \ dontinclude endhtmlonly endlatexonly showinitializer hideinitializer
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
208 \ example htmlonly image include includelineno ingroup latexonly line
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
209 \ overload relates related relatesalso relatedalso sa skip skipline
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
210 \ until verbinclude version addtogroup htmlinclude copydoc dotfile
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
211 \ xmlonly endxmlonly
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
212 \ nextgroup=doxygenSpecialOnelineDesc copybrief copydetails copyright dir extends
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
213 \ implements
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
214
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
215 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
216 syn match doxygenCodeRegionSpecial contained +[\\@]\(endcode\>\)\@=+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
217
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
218 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
219 syn match doxygenVerbatimRegionSpecial contained +[\\@]\(endverbatim\>\)\@=+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
220
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
221 if exists('b:current_syntax')
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
222 let b:doxygen_syntax_save=b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
223 unlet b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
224 endif
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
225
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
226 syn include @Dotx syntax/dot.vim
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
227
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
228 if exists('b:doxygen_syntax_save')
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
229 let b:current_syntax=b:doxygen_syntax_save
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
230 unlet b:doxygen_syntax_save
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
231 else
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
232 unlet b:current_syntax
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
233 endif
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 835
diff changeset
234
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
235 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
236 syn match doxygenDotRegionSpecial contained +[\\@]\(enddot\>\)\@=+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
237
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
238 " Match single line identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
239 syn keyword doxygenBOther contained class enum file fn mainpage interface
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
240 \ namespace struct typedef union var def name
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
241 \ nextgroup=doxygenSpecialTypeOnelineDesc
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 syn keyword doxygenOther contained par nextgroup=doxygenHeaderLine
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
244 syn region doxygenHeaderLine start=+.+ end=+^+ contained skipwhite nextgroup=doxygenSpecialMultilineDesc
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
245 " Match the start of other multiline comments.
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
246 syn keyword doxygenOther contained arg author authors date deprecated li return returns result see invariant note post pre remarks since test internal nextgroup=doxygenSpecialMultilineDesc
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
247 syn keyword doxygenOtherTODO contained todo attention nextgroup=doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
248 syn keyword doxygenOtherWARN contained warning nextgroup=doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
249 syn keyword doxygenOtherBUG contained bug nextgroup=doxygenSpecialMultilineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
250
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
251 " 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
252 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
253 syn match doxygenEndlinkSpecial contained +[\\@]\zeendlink\>+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
254
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
255 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
256 syn match doxygenLinkRest +[^*@\\]\|\*/\@!\|[@\\]\(endlink\>\)\@!+ contained skipnl nextgroup=doxygenLinkRest,doxygenContinueLinkComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
257 syn match doxygenContinueLinkComment contained +^\s*\*\=[^/]+me=e-1 nextgroup=doxygenLinkRest
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
258 syn match doxygenLinkError "\*/" contained
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23305
diff changeset
259 " #Link highlighting.
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
260 syn match doxygenHashLink /\(\h\w*\)\?#\(\.\w\@=\|\w\+\|::\|()\)\+/ contained contains=doxygenHashSpecial
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
261 syn match doxygenHashSpecial /#/ contained
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
262 syn match doxygenHyperLink /\(\s\|^\s*\*\?\)\@<=\(http\|https\|ftp\):\/\/[-0-9a-zA-Z_?&=+#%/.!':;@~]\+/ contained
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
263
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
264 " Handle \page. This does not use doxygenBrief.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
265 syn match doxygenPage "[\\@]page\>"me=s+1 contained skipwhite nextgroup=doxygenPagePage
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
266 syn keyword doxygenPagePage page contained skipwhite nextgroup=doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
267 syn region doxygenPageDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend skipwhite skipnl nextgroup=doxygenBody
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
268 syn match doxygenPageIdent "\<\w\+\>" contained nextgroup=doxygenPageDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
269
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
270 " Handle section
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
271 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
272 syn region doxygenSpecialSectionDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend skipwhite skipnl nextgroup=doxygenContinueCommentWhite
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
273 syn match doxygenSpecialIdent "\<\w\+\>" contained nextgroup=doxygenSpecialSectionDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
274
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
275 " Does the one-line description for the one-line type identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
276 syn region doxygenSpecialTypeOnelineDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
277 syn region doxygenSpecialOnelineDesc start=+.\++ end=+$+ contained skipwhite contains=doxygenSmallSpecial,@doxygenHtmlGroup keepend
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
278
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
279 " Handle the multiline description for the multiline type identifiers.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
280 " Continue until an 'empty' line (can contain a '*' continuation) or until the
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
281 " next whole-line @ command \ command.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
282 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
283
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
284 " syn match doxygenSpecialContinueComment contained +^\s*\*/\@!\s*+ nextgroup=doxygenSpecial skipwhite
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
285 syn match doxygenSpecialContinueCommentWhite contained +^\s*\ze\*+ nextgroup=doxygenSpecialContinueComment
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
286 syn match doxygenSpecialContinueComment contained +\*/\@!+
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
287
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
288
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
289 " Handle special cases 'bold' and 'group'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
290 syn keyword doxygenBold contained bold nextgroup=doxygenSpecialHeading
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
291 syn keyword doxygenBriefWord contained brief nextgroup=doxygenBriefLine skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
292 syn match doxygenSpecialHeading +.\++ contained skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
293 syn keyword doxygenGroup contained group nextgroup=doxygenGroupName skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
294 syn keyword doxygenGroupName contained +\k\++ nextgroup=doxygenSpecialOnelineDesc skipwhite
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
295
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
296 " Handle special symbol identifiers @$, @\, @$ etc
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
297 syn match doxygenSymbol contained +[$\\&<>#n]+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
298
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
299 " Simplistic handling of formula regions
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
300 syn region doxygenFormula contained matchgroup=doxygenFormulaEnds start=+f\$+ end=+[@\\]f\$+ contains=doxygenFormulaSpecial,doxygenFormulaOperator
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
301 syn match doxygenFormulaSpecial contained +[@\\]\(f[^$]\|[^f]\)+me=s+1 nextgroup=doxygenFormulaKeyword,doxygenFormulaEscaped
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
302 syn match doxygenFormulaEscaped contained "."
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
303 syn match doxygenFormulaKeyword contained "[a-z]\+"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
304 syn match doxygenFormulaOperator contained +[_^]+
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
305
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
306 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
307 syn region doxygenAtom contained transparent matchgroup=doxygenFormulaOperator start=+{+ end=+}+ contains=doxygenAtom,doxygenFormulaSpecial,doxygenFormulaOperator
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
308
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23305
diff changeset
309 " Add TODO highlighting.
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
310 syn keyword doxygenTODO contained TODO README XXX FIXME
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
311
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
312 " Supported HTML subset. Not perfect, but okay.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
313 syn case ignore
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
314 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
315 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
316 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
317 syn match doxygenHtmlEqu contained +=+ nextgroup=doxygenHtmlExpr skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
318 syn match doxygenHtmlExpr contained +"\(\\.\|[^"]\)*"\|'\(\\.\|[^']\)*'+ nextgroup=doxygenHtmlVar skipwhite
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
319 syn case match
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
320 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
321
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
322 syn cluster doxygenHtmlGroup contains=doxygenHtmlCode,doxygenHtmlBold,doxygenHtmlUnderline,doxygenHtmlItalic,doxygenHtmlSpecial,doxygenHtmlTag,doxygenHtmlLink
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
323
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
324 syn cluster doxygenHtmlTop contains=@Spell,doxygenHtmlSpecial,doxygenHtmlTag,doxygenContinueCommentWhite
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
325 " Html Support
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
326 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
327 hi link doxygenHtmlLink Underlined
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
328
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
329 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
330 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
331 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
332 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
333 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
334 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
335 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
336 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
337
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
338 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
339 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
340 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
341 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
342 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
343 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
344 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
345 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
346 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
347
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
348 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
349 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
350 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
351 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
352 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
353 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
354 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
355 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
356
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
357 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
358
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
359 " Prevent the doxygen contained matches from leaking into the c/rc groups.
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
360 syn cluster cParenGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
361 syn cluster cParenGroup remove=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
362 syn cluster cPreProcGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
363 syn cluster cMultiGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
364 syn cluster rcParenGroup add=doxygen.*
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
365 syn cluster rcParenGroup remove=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
366 syn cluster rcGroup add=doxygen.*
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
367
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
368 let s:my_syncolor=0
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
369 if !exists(':SynColor')
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
370 command -nargs=+ SynColor hi def <args>
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
371 let s:my_syncolor=1
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
372 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
373
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
374 let s:my_synlink=0
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
375 if !exists(':SynLink')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
376 command -nargs=+ SynLink hi def link <args>
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
377 let s:my_synlink=1
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
378 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
379
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
380 try
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
381 "let did_doxygen_syntax_inits = &background
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
382 hi doxygen_Dummy guifg=black
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
383
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
384 fun! s:Doxygen_Hilights_Base()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
385 SynLink doxygenHtmlSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
386 SynLink doxygenHtmlVar Type
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
387 SynLink doxygenHtmlExpr String
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
388
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
389 SynLink doxygenSmallSpecial SpecialChar
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
390
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
391 SynLink doxygenSpecialCodeWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
392 SynLink doxygenSpecialBoldWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
393 SynLink doxygenSpecialEmphasisedWord doxygenSmallSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
394 SynLink doxygenSpecialArgumentWord doxygenSmallSpecial
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
395
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
396 " SynColor doxygenFormulaKeyword cterm=bold ctermfg=DarkMagenta guifg=DarkMagenta gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
397 SynLink doxygenFormulaKeyword Keyword
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
398 "SynColor doxygenFormulaEscaped ctermfg=DarkMagenta guifg=DarkMagenta gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
399 SynLink doxygenFormulaEscaped Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
400 SynLink doxygenFormulaOperator Operator
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
401 SynLink doxygenFormula Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
402 SynLink doxygenSymbol Constant
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
403 SynLink doxygenSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
404 SynLink doxygenFormulaSpecial Special
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
405 "SynColor doxygenFormulaSpecial ctermfg=DarkBlue guifg=DarkBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
406 endfun
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
407 call s:Doxygen_Hilights_Base()
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
408
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
409 fun! s:Doxygen_Hilights()
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
410 " Pick a sensible default for 'codeword'.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
411 let font=''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
412 if exists('g:doxygen_codeword_font')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
413 if g:doxygen_codeword_font !~ '\<\k\+='
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
414 let font='font='.g:doxygen_codeword_font
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 let font=g:doxygen_codeword_font
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
417 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
418 else
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
419 " Try and pick a font (only some platforms have been tested).
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
420 if has('gui_running')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
421 if has('gui_gtk2')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
422 if &guifont == ''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
423 let font="font='FreeSerif 12'"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
424 else
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
425 let font="font='".substitute(&guifont, '^.\{-}\(\d\+\)$', 'FreeSerif \1','')."'"
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
426 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
427
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
428 elseif has('gui_win32') || has('gui_win16') || has('gui_win95')
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
429
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
430 if exists('g:doxygen_use_bitsream_vera') && g:doxygen_use_bitsream_vera
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
431 let font_base='Bitstream_Vera_Sans_Mono'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
432 else
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
433 let font_base='Lucida_Console'
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
434 endif
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
435 if &guifont == ''
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
436 let font='font='.font_base.':h10'
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
437 else
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
438 let font='font='.matchstr(substitute(&guifont, '^[^:]*', font_base,''),'[^,]*')
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
439 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
440 elseif has('gui_athena') || has('gui_gtk') || &guifont=~'^\(-[^-]\+\)\{14}'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
441 if &guifont == ''
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
442 let font='font=-b&h-lucidatypewriter-medium-r-normal-*-*-140-*-*-m-*-iso8859-1'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
443 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
444 " 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
445 " The above line works, but it is hard to expect the combination of
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
446 " the two fonts will look good.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
447 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
448 elseif has('gui_kde')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
449 " 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
450 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
451 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
452 endif
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
453 if font=='' | let font='gui=bold' | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
454 exe 'SynColor doxygenCodeWord term=bold cterm=bold '.font
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
455 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
456 if &background=='light'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
457 SynColor doxygenComment ctermfg=DarkRed guifg=DarkRed
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
458 SynColor doxygenBrief cterm=bold ctermfg=Cyan guifg=DarkBlue gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
459 SynColor doxygenBody ctermfg=DarkBlue guifg=DarkBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
460 SynColor doxygenSpecialTypeOnelineDesc cterm=bold ctermfg=DarkRed guifg=firebrick3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
461 SynColor doxygenBOther cterm=bold ctermfg=DarkMagenta guifg=#aa50aa gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
462 SynColor doxygenParam ctermfg=DarkGray guifg=#aa50aa
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
463 SynColor doxygenParamName cterm=italic ctermfg=DarkBlue guifg=DeepSkyBlue4 gui=italic,bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
464 SynColor doxygenSpecialOnelineDesc cterm=bold ctermfg=DarkCyan guifg=DodgerBlue3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
465 SynColor doxygenSpecialHeading cterm=bold ctermfg=DarkBlue guifg=DeepSkyBlue4 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
466 SynColor doxygenPrev ctermfg=DarkGreen guifg=DarkGreen
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
467 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
468 SynColor doxygenComment ctermfg=LightRed guifg=LightRed
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
469 SynColor doxygenBrief cterm=bold ctermfg=Cyan ctermbg=darkgrey guifg=LightBlue gui=Bold,Italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
470 SynColor doxygenBody ctermfg=Cyan guifg=LightBlue
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
471 SynColor doxygenSpecialTypeOnelineDesc cterm=bold ctermfg=Red guifg=firebrick3 gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
472 SynColor doxygenBOther cterm=bold ctermfg=Magenta guifg=#aa50aa gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
473 SynColor doxygenParam ctermfg=LightGray guifg=LightGray
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
474 SynColor doxygenParamName cterm=italic ctermfg=LightBlue guifg=LightBlue gui=italic,bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
475 SynColor doxygenSpecialOnelineDesc cterm=bold ctermfg=LightCyan guifg=LightCyan gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
476 SynColor doxygenSpecialHeading cterm=bold ctermfg=LightBlue guifg=LightBlue gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
477 SynColor doxygenPrev ctermfg=LightGreen guifg=LightGreen
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
478 endif
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
479 SynLink doxygenValue doxygenParamName
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
480 else
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
481 SynLink doxygenComment SpecialComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
482 SynLink doxygenBrief Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
483 SynLink doxygenBody Comment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
484 SynLink doxygenSpecialTypeOnelineDesc Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
485 SynLink doxygenBOther Constant
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
486 SynLink doxygenParam SpecialComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
487 SynLink doxygenParamName Underlined
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
488 SynLink doxygenSpecialOnelineDesc Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
489 SynLink doxygenSpecialHeading Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
490 SynLink doxygenPrev SpecialComment
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
491 SynLink doxygenValue Constant
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
492 endif
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
493 SynLink doxygenTParam doxygenParam
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
494
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
495 endfun
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
496
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
497 call s:Doxygen_Hilights()
834
5117153003bd updated for version 7.0e
vimboss
parents: 831
diff changeset
498
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
499 syn match doxygenLeadingWhite +\(^\s*\*\)\@<=\s*+ contained
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
500
29269
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
501 " This is still a proposal, but it is probably fine. However, it doesn't
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
502 " work when 'syntax' is set in a modeline, catch the security error.
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
503 try
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
504 aug doxygengroup
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
505 au!
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
506 au Syntax UserColor_reset nested call s:Doxygen_Hilights_Base()
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
507 au Syntax UserColor_{on,reset,enable} nested call s:Doxygen_Hilights()
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
508 aug END
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
509 catch /E12:/
0fdf36de4018 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25773
diff changeset
510 endtry
834
5117153003bd updated for version 7.0e
vimboss
parents: 831
diff changeset
511
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
512
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
513 SynLink doxygenBody Comment
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
514 SynLink doxygenLine doxygenBody
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
515 SynLink doxygenTODO Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
516 SynLink doxygenOtherTODO Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
517 SynLink doxygenOtherWARN Todo
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
518 SynLink doxygenOtherBUG Todo
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
519 SynLink doxygenLeadingLWhite doxygenBody
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
520
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
521 SynLink doxygenErrorSpecial Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
522 SynLink doxygenErrorEnd Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
523 SynLink doxygenErrorComment Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
524 SynLink doxygenLinkError Error
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
525 SynLink doxygenBriefSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
526 SynLink doxygenHashSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
527 SynLink doxygenGroupDefineSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
528 SynLink doxygenEndlinkSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
529 SynLink doxygenCodeRegionSpecial doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
530 SynLink doxygenVerbatimRegionSpecial doxygenSpecial
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 840
diff changeset
531 SynLink doxygenDotRegionSpecial doxygenSpecial
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
532 SynLink doxygenGroupDefine doxygenParam
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
533
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
534 SynLink doxygenSpecialMultilineDesc doxygenSpecialOnelineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
535 SynLink doxygenFormulaEnds doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
536 SynLink doxygenBold doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
537 SynLink doxygenBriefWord doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
538 SynLink doxygenRetval doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
539 SynLink doxygenOther doxygenParam
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
540 SynLink doxygenStart doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
541 SynLink doxygenStart2 doxygenStart
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
542 SynLink doxygenComment2 doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
543 SynLink doxygenCommentL doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
544 SynLink doxygenContinueComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
545 SynLink doxygenSpecialContinueComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
546 SynLink doxygenSkipComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
547 SynLink doxygenEndComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
548 SynLink doxygenStartL doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
549 SynLink doxygenBriefEndComment doxygenComment
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
550 SynLink doxygenPrevL doxygenPrev
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
551 SynLink doxygenBriefL doxygenBrief
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
552 SynLink doxygenBriefLine doxygenBrief
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
553 SynLink doxygenHeaderLine doxygenSpecialHeading
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
554 SynLink doxygenCommentWhite Normal
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
555 SynLink doxygenCommentWhite2 doxygenCommentWhite
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
556 SynLink doxygenContinueCommentWhite doxygenCommentWhite
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
557 SynLink doxygenStartSkipWhite doxygenContinueCommentWhite
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
558 SynLink doxygenLinkWord doxygenParamName
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
559 SynLink doxygenLinkRest doxygenSpecialMultilineDesc
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
560 SynLink doxygenHyperLink doxygenLinkWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
561 SynLink doxygenHashLink doxygenLinkWord
23305
fab58304f77d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12909
diff changeset
562 SynLink doxygenReturnValue doxygenValue
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
563
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
564 SynLink doxygenPage doxygenSpecial
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
565 SynLink doxygenPagePage doxygenBOther
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
566 SynLink doxygenPageIdent doxygenParamName
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
567 SynLink doxygenPageDesc doxygenSpecialTypeOnelineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
568
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
569 SynLink doxygenSpecialIdent doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
570 SynLink doxygenSpecialSectionDesc doxygenSpecialMultilineDesc
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
571
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
572 SynLink doxygenSpecialRefWord doxygenOther
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
573 SynLink doxygenRefWord doxygenPageIdent
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
574 SynLink doxygenContinueLinkComment doxygenComment
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
575
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
576 SynLink doxygenHtmlCh Function
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
577 SynLink doxygenHtmlCmd Statement
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
578 SynLink doxygenHtmlBoldItalicUnderline doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
579 SynLink doxygenHtmlUnderlineBold doxygenHtmlBoldUnderline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
580 SynLink doxygenHtmlUnderlineItalicBold doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
581 SynLink doxygenHtmlUnderlineBoldItalic doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
582 SynLink doxygenHtmlItalicUnderline doxygenHtmlUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
583 SynLink doxygenHtmlItalicBold doxygenHtmlBoldItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
584 SynLink doxygenHtmlItalicBoldUnderline doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
585 SynLink doxygenHtmlItalicUnderlineBold doxygenHtmlBoldUnderlineItalic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
586 SynLink doxygenHtmlLink Underlined
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
587
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
588 SynLink doxygenParamDirection StorageClass
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
589
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
590
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
591 if !exists("doxygen_my_rendering") && !exists("html_my_rendering")
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
592 SynColor doxygenBoldWord term=bold cterm=bold gui=bold
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
593 SynColor doxygenEmphasisedWord term=italic cterm=italic gui=italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
594 SynLink doxygenArgumentWord doxygenEmphasisedWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
595 SynLink doxygenHtmlCode doxygenCodeWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
596 SynLink doxygenHtmlBold doxygenBoldWord
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
597 SynColor doxygenHtmlBoldUnderline term=bold,underline cterm=bold,underline gui=bold,underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
598 SynColor doxygenHtmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
599 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
600 SynColor doxygenHtmlUnderline term=underline cterm=underline gui=underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
601 SynColor doxygenHtmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
602 SynColor doxygenHtmlItalic term=italic cterm=italic gui=italic
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
603 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
604
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
605 finally
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
606 if s:my_synlink | delcommand SynLink | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
607 if s:my_syncolor | delcommand SynColor | endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
608 endtry
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
609
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
610 if &syntax=='idl'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
611 syn cluster idlCommentable add=doxygenComment,doxygenCommentL
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
612 endif
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
613
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
614 "syn sync clear
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
615 "syn sync maxlines=500
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
616 "syn sync minlines=50
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
617 syn sync match doxygenComment groupthere cComment "/\@<!/\*"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
618 syn sync match doxygenSyncComment grouphere doxygenComment "/\@<!/\*[*!]"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
619 "syn sync match doxygenSyncComment grouphere doxygenComment "/\*[*!]" contains=doxygenStart,doxygenTODO keepend
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
620 syn sync match doxygenSyncEndComment groupthere NONE "\*/"
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
621
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
622 if !exists('b:current_syntax')
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
623 let b:current_syntax = "doxygen"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
624 else
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
625 let b:current_syntax = b:current_syntax.'.doxygen'
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
626 endif
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
627
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
628 finally
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
629 let &cpo = s:cpo_save
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
630 unlet s:cpo_save
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 834
diff changeset
631 endtry
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12785
diff changeset
632 let suppress_doxygen=1
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
633 " vim:et sw=2 sts=2