Syn keyword doxygenOther contained addindex anchor Syn keyword doxygenRetval contained retval throw exception nextgroup=doxygenParamName skipwhite Syn match doxygenParamName contained +\++ nextgroup=doxygenSpecialMultilineDesc skipwhite Syn keyword doxygenParam contained param nextgroup=doxygenParamName,doxygenParamDirection skipwhite Syn match doxygenGroupDefine contained nextgroup=doxygenParamName skipwhite " doxygenOtherLink,doxygenSymbol,doxygenFormula,doxygenErrorSpecial,doxygenSpecial.*Word Syn match doxygenSpecial contained nextgroup=doxygenParam,doxygenRetval,doxygenBriefWord,doxygenBold,doxygenBOther,doxygenOther,doxygenOtherTODO,doxygenOtherWARN,doxygenOtherBUG,doxygenPage,doxygenGroupDefine,doxygenCodeRegion,doxygenVerbatimRegion,doxygenDotRegion ![]() Let 'syn region doxygenSpecial'.a:name.'Word contained start=+'.a:kword.'+ nextgroup=doxygenOtherLink,doxygenHyperLink,doxygenHashLink,doxygenFormula,doxygenSymbol,doxygenSpecial.*Word " Create the single word matching special identifiers.įun! s:Dx圜reateSmallSpecial( kword, name ) Syn region doxygenFindBriefSpecial keepend contains=doxygenBriefSpecial nextgroup=doxygenBody keepend skipwhite skipnl contained Syn match doxygenBriefSpecial contained nextgroup=doxygenBriefWord skipwhite " Match an so that it moves to body-mode. Syn match doxygenStartSkip +^\s*\*$+ contained nextgroup=doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage,doxygenBody skipwhite skipnl Syn match doxygenStartSkip +^\s*\*+me=e-1 contained nextgroup=doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage,doxygenBody skipwhite skipnl Syn match doxygenStartSkip +^\s*\*$+ contained nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl Syn match doxygenStartSkip +^\s*\*+me=e-1 contained nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl If !exists('g:doxygen_javadoc_autobrief') || g:doxygen_javadoc_autobrief " Skip empty lines at the start for when comments start on the 2nd/3rd line. Syn match doxygenErrorComment contained +\*/+ " make sure the end comment is picked up also. Syn match doxygenContinueComment contained Catch a Brief comment without punctuation - flag it as an error but Syn region doxygenBody contained start=+.\|$+ matchgroup=doxygenEndComment end=+\*/+re=e-2,me=e-2 These allow the skipping of comment continuation '*' characters. "syn region doxygenBodyBit contained start=+$+ Syn match doxygenSkipComment contained nextgroup=doxygenBrief,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenPage skipwhite " Match a end=+$+ end=+\*/+me=s-1,he=s-1 contains=doxygenSpecial nextgroup=doxygenSkipComment skipnl keepend Syn match doxygenBriefEndComment +\*/+ containedĮxe 'syn region doxygenBriefL skipwhite keepend Syn region doxygenCommentL start=+//\|em\>\|ref\>\|link\>\|f\$\|\)\|[^ skipnl nextgroup=doxygenBody' Syn region doxygenComment end=+\*/+ contains=doxygenSyncStart,doxygenStart,doxygenTODO keepend If exists('b:current_syntax') & b:current_syntax =~ 'doxygen' & !exists('doxygen_debug_script') " Special thanks to: Wu Yongwei, Toby Allsopp ![]() " hilighting more accurately reflect the way Doxygen will interpret your " can set the variable g:doxygen_javadoc_autobrief to 0 to have the " setting tunred on in your Doxygen configuration. ![]() " By default, hilighting is done assumng you have the JAVADOC_AUTOBRIEF Alternatively, a hilight for doxygenCodeWord " words - a 'typewriter' like font normally. ![]() " The variable g:doxygen_codeword_font can be set to the guifont for marking \c " A \link without an \endlink will cause an error hilight on the end-comment. " A brief description without '.' or '!' will cause the end comment " doxygen_my_rendering - Disable the HTML bold/italic/underline rendering. " doxygen_enhanced_colour - Use the (non-standard) original colours designed for this hilighting. " There are two variables that control the syntax hilighting produced by this " appreciate and welcome any updates, modifications or suggestions. " I would appreciate being acknowledged in any derived scripts, and would " providing this copyright message remains. " Please feel free to use, modify & distribute all or part of this script, " Language: doxygen on top of c, cpp, idl, java " DoxyGen syntax hilighting extension for c/c++/idl/java
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |