Improve C Doxygen highlights
This commit is contained in:
		
							parent
							
								
									659bcc73e8
								
							
						
					
					
						commit
						0aa63ffb34
					
				| @ -25,10 +25,13 @@ syn match cLabel '^\s*\w[A-Za-z0-9_]\+\ze::\@!' contains=cppAccess | ||||
| " Match Doxygen comments | ||||
| let g:c_doxygen = get(g:, 'c_doxygen', 1) | ||||
| 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*@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*[\\@]brief\s\+' end='$' | ||||
|   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 match cDoxygenTodo 'todo' contained | ||||
|   syn region cComment oneline start='\/\/\/\s*[\\@]\zetodo\s\+' end='$' contains=cDoxygenTodo | ||||
|   hi default link cDoxygen SpecialComment | ||||
|   hi default link cDoxygenTodo Todo | ||||
| endif | ||||
| 
 | ||||
| " Match curly braces with cDelimiter highlight group | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user