Hi
I noticed that Vim's spelling checker highlight spelling mistakes
in some parts of doxygen comments, but not everywhere.
The following screenshot illustrates the problem (notice that
not all spelling mistakes are highlighted):
http://dominique.pelle.free.fr/doxygen-spelling.png
Attached patch fixes it.
-- Dominique
PS: to highlight spelling mistakes in doxygen comments,
you need the following settings:
syntax on
filetype on
filetype plugin on
set spell
let g:load_doxygen_syntax=1
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
Index: doxygen.vim
===================================================================
RCS file: /cvsroot/vim/vim7/runtime/syntax/doxygen.vim,v
retrieving revision 1.5
diff -c -r1.5 doxygen.vim
*** doxygen.vim 5 May 2007 18:02:45 -0000 1.5
--- doxygen.vim 19 Jul 2008 06:53:39 -0000
***************
*** 30,36 ****
" also be set to any highlight attribute. Alternatively, a highlight for doxygenCodeWord
" can be used to override it.
"
! " By default, highlighting is done assumng you have the JAVADOC_AUTOBRIEF
" setting turned on in your Doxygen configuration. If you don't, you
" can set the variable g:doxygen_javadoc_autobrief to 0 to have the
" highlighting more accurately reflect the way Doxygen will interpret your
--- 30,36 ----
" also be set to any highlight attribute. Alternatively, a highlight for doxygenCodeWord
" can be used to override it.
"
! " By default, highlighting is done assuming you have the JAVADOC_AUTOBRIEF
" setting turned on in your Doxygen configuration. If you don't, you
" can set the variable g:doxygen_javadoc_autobrief to 0 to have the
" highlighting more accurately reflect the way Doxygen will interpret your
***************
*** 57,65 ****
" C/C++ Style line comments
syn region doxygenComment start=+/\*\(\*/\)[EMAIL PROTECTED] end=+\*/+ contains=doxygenSyncStart,doxygenStart,doxygenTODO keepend fold
! syn region doxygenCommentL start=+//[/!]<[EMAIL PROTECTED] end=+$+ contains=doxygenStartL keepend skipwhite skipnl nextgroup=doxygenComment2 fold
! syn region doxygenCommentL start=+//[/!]<+me=e-2 end=+$+ contains=doxygenStartL keepend skipwhite skipnl fold
! syn region doxygenCommentL start=+//@\ze[{}]+ end=+$+ contains=doxygenGroupDefine,doxygenGroupDefineSpecial fold
" Single line brief followed by multiline comment.
syn region doxygenComment2 start=+/\*\(\*/\)[EMAIL PROTECTED] end=+\*/+ contained contains=doxygenSyncStart2,doxygenStart2,doxygenTODO keepend fold
--- 57,65 ----
" C/C++ Style line comments
syn region doxygenComment start=+/\*\(\*/\)[EMAIL PROTECTED] end=+\*/+ contains=doxygenSyncStart,doxygenStart,doxygenTODO keepend fold
! syn region doxygenCommentL start=+//[/!]<[EMAIL PROTECTED] end=+$+ contains=doxygenStartL,@Spell keepend skipwhite skipnl nextgroup=doxygenComment2 fold
! syn region doxygenCommentL start=+//[/!]<+me=e-2 end=+$+ contains=doxygenStartL,@Spell keepend skipwhite skipnl fold
! syn region doxygenCommentL start=+//@\ze[{}]+ end=+$+ contains=doxygenGroupDefine,doxygenGroupDefineSpecial,@Spell fold
" Single line brief followed by multiline comment.
syn region doxygenComment2 start=+/\*\(\*/\)[EMAIL PROTECTED] end=+\*/+ contained contains=doxygenSyncStart2,doxygenStart2,doxygenTODO keepend fold
***************
*** 98,104 ****
" This helps with sync-ing as for some reason, syncing behaves differently to a normal region, and the start pattern does not get matched.
syn match doxygenSyncStart +\ze[^*/]+ contained nextgroup=doxygenBrief,doxygenPrev,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl
! syn region doxygenBriefLine contained start=+\<\k+ end=+\(\n\s*\*\=\s*\([EMAIL PROTECTED]([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)[EMAIL PROTECTED])\|\s*$\)[EMAIL PROTECTED] contains=doxygenContinueComment,doxygenFindBriefSpecial,doxygenSmallSpecial,@doxygenHtmlGroup,doxygenTODO,doxygenHyperLink,doxygenHashLink skipwhite keepend
" Match a '<' for applying a comment to the previous element.
syn match doxygenPrev +<+ contained nextgroup=doxygenBrief,doxygenBody,doxygenSpecial,doxygenStartSkip skipwhite
--- 98,104 ----
" This helps with sync-ing as for some reason, syncing behaves differently to a normal region, and the start pattern does not get matched.
syn match doxygenSyncStart +\ze[^*/]+ contained nextgroup=doxygenBrief,doxygenPrev,doxygenStartSpecial,doxygenFindBriefSpecial,doxygenStartSkip,doxygenPage skipwhite skipnl
! syn region doxygenBriefLine contained start=+\<\k+ end=+\(\n\s*\*\=\s*\([EMAIL PROTECTED]([npcbea]\>\|em\>\|ref\>\|link\>\|f\$\|[$\\&<>#]\)[EMAIL PROTECTED])\|\s*$\)[EMAIL PROTECTED] contains=doxygenContinueComment,doxygenFindBriefSpecial,doxygenSmallSpecial,@doxygenHtmlGroup,doxygenTODO,doxygenHyperLink,doxygenHashLink,@Spell skipwhite keepend
" Match a '<' for applying a comment to the previous element.
syn match doxygenPrev +<+ contained nextgroup=doxygenBrief,doxygenBody,doxygenSpecial,doxygenStartSkip skipwhite