From d0af1c711609b1f5405c0ac8010e5e4b4bae02ce Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 31 May 2022 10:57:28 +0100 Subject: [PATCH] Fix Doxygen @param highlight There are two forms of `@param`: * `@param ` * `@param[] ` Prior to this patch only the latter was highlighting `` as a special comment, now both forms do this. --- after/syntax/c.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 5996c7a..12b7f7c 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -45,7 +45,7 @@ if exists('g:c_doxygen') && g:c_doxygen " Match: @param name description. @retval name description. " ^^^^ ^^^^ - syn region cDoxygenSpecial matchgroup=cDoxygenComment start='@\(param\(\[\(\|in\|out\|in,out\)\]\)\|retval\)\=\s\+' end='\(\s\|$\)' contained display + syn region cDoxygenSpecial matchgroup=cDoxygenComment start='@\(param\(\[\(\|in\|out\|in,out\)\]\)\?\|retval\)\=\s\+' end='\(\s\|$\)' contained display " Match: @tparam name description. " ^^^^