After updating gentoo-syntax-20070506 to gentoo-syntax-20090220, all my highlights in global scope comments went out like the useful TODO: or bug <id>. I tried to look at the diff between the two tarballs but I didn't see anything relevant.
gentoo-syntax-20081006 has this bug too
I confirm this issue, but maybe bug 265560 is related and the root cause of this bug?
(In reply to comment #2) > I confirm this issue, but maybe bug 265560 is related and the root cause of > this bug? > I don't think so. I'm using vim-7.2 (not 7.2.108) and I've tested the three versions of gentoo-syntax with the same vim version.
Interesting thing: I realized highlighting was working if i add a tab before the #. Like <tab># TODO: foo Hope it could help...
Got it ! It comes from: " Eclass documentation syn match EclassDocumentation /@\(BLURB\|CODE\|DESCRIPTION\|ECLASS-VARIABLE\|ECLASS\|EXAMPLE\|FUNCTION\|MAINTAINER\|RETURN\|USAGE\|VARIABLE\):/ contained syn match EclassComment /^#.*$/ contains=EclassDocumentation" in ebuild.vim As eclass comments are ot top of eclasses, when I add # TODO: at top of ebuild, syntax interprets it as eclass comments. But TODO highlights come with shComment so I've changed the syntax file to highlight EclassDocumentation in shComment instead of create EclassComment.
Created attachment 197039 [details, diff] fixing patch hope it's going to be ok, that's the first time i had to look at a syntax file
%% svn ci -m "Fix commenting scope issues, bug 265476. patch by Mounir Lamouri" Sending syntax/ebuild.vim Transmitting file data . Committed revision 63.
released in gentoo-syntax-20090720.ebuild, thx for the patch - sorry for the wait.