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:
2018-08-24 11:23:45 -04:00
parent 3ab97900c8
commit f33ebf8b32

View File

@ -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