In vim, FIXME and TODO are highlighted, but I can\'t get FIXME: and TODO: (note the colon after the keyword) to highlight? What should I put in my .vimrc to make this happen
augroup vimrc_todo
au!
au Syntax * syn match MyTodo /\v<(FIXME|NOTE|TODO|OPTIMIZE|XXX):/
\ containedin=.*Comment,vimCommentTitle
augroup END
hi def link MyTodo Todo
The containedin
will add it to all groups ending in "Comment", plus
vimCommentTitle, where " TODO: foo
would not get highlighted as MyTodo otherwise.