Fixup the c-inclusion params a bit.
The overly greedy blue-comment star matcher would make all C and C++ code in doxygen look good, but it messes with non-doxygen block comments. By changing to this `containedin` blocking, we pickup the trailing `)` and `}` characters that seem to be skipped if just doing the ticked-region contained requirement.
This commit is contained in:
@ -8,12 +8,12 @@ if exists("b:current_syntax")
|
||||
unlet b:current_syntax
|
||||
endif
|
||||
|
||||
syn match blueCommentStar "^[ ]*\*[ ]*" contained containedin=doxygenBriefLine,doxygenFixedWidth,@doxyNestedCxx
|
||||
syn match blueCommentStar "^[ ]*\*" containedin=doxygenFixedWidth,cBlock,cParen,cppParen
|
||||
|
||||
" Make all C++ code in a doxygen block look kinda like natural C++
|
||||
"syn match doxygenSpecialMultilineDesc "`"
|
||||
|
||||
syn cluster doxyNestedCXX contains=@cxxInDoxygen,blueCommentStar
|
||||
syn cluster doxyNestedCXX contains=@cxxInDoxygen
|
||||
syn cluster doxyNeedsFixedWidth contains=doxygenBody,doxygenSpecialMultilineDesc,doxygenBriefLine,doxygenBrief
|
||||
|
||||
syn region doxygenFixedWidth containedin=@doxyNeedsFixedWidth matchgroup=Comment start=+@code+ skip=+^\n+ keepend end=+@endcode+ contains=@doxyNestedCXX
|
||||
|
Reference in New Issue
Block a user