Improve C Doxygen highlights

This commit is contained in:
Kenneth Benzie 2016-09-09 09:19:54 +01:00
parent 659bcc73e8
commit 0aa63ffb34

View File

@ -25,10 +25,13 @@ syn match cLabel '^\s*\w[A-Za-z0-9_]\+\ze::\@!' contains=cppAccess
" Match Doxygen comments " Match Doxygen comments
let g:c_doxygen = get(g:, 'c_doxygen', 1) let g:c_doxygen = get(g:, 'c_doxygen', 1)
if exists('g:c_doxygen') && g:c_doxygen if exists('g:c_doxygen') && g:c_doxygen
syn region cDoxygen oneline matchgroup=cComment start='\/\/\/\s*@brief\s\+' end='$' syn region cDoxygen oneline matchgroup=cComment start='\/\/\/\s*[\\@]brief\s\+' end='$'
syn region cDoxygen oneline matchgroup=cComment start='\/\/\/\s*@tparam\s\+' end='\(\s.*$\|$\)' syn region cDoxygen oneline matchgroup=cComment start='\/\/\/\s*[\\@]tparam\s\+' end='\(\s.*$\|$\)'
syn region cDoxygen oneline matchgroup=cComment start='\/\/\/\s*@param\(\[\(\|in\|out\|inout\)\]\)\=\s\+' end='\(\s.*$\|$\)' syn region cDoxygen oneline matchgroup=cComment start='\/\/\/\s*[\\@]param\(\[\(\|in\|out\|inout\)\]\)\=\s\+' end='\(\s.*$\|$\)'
syn match cDoxygenTodo 'todo' contained
syn region cComment oneline start='\/\/\/\s*[\\@]\zetodo\s\+' end='$' contains=cDoxygenTodo
hi default link cDoxygen SpecialComment hi default link cDoxygen SpecialComment
hi default link cDoxygenTodo Todo
endif endif
" Match curly braces with cDelimiter highlight group " Match curly braces with cDelimiter highlight group