On Monday 07 January 2008 00.22.10 David Nolden wrote: > On Sunday 06 January 2008 22:26:27 Matt Rogers wrote: > > yes, absolutely, and i'm not suggesting that we take it out. > > > > is there a way to make this extensible so that it only completes when > > working on a project that supports foreach? We don't have to do it > > now, but it would be a cool feature. :) > > What I've done doesn't mean that "foreach" will show up in the > completion-list. It's just that when foreach(..) happens in the > source-code, it is understood correctly, by correctly building duchain > stuff. That means that highlighting, refactoring, etc. will work > with/within foreach statements. So it doesn't change anything for projects > that don't use foreach. > What happens if the parser runs on code that contains a different "foreach" macro than the Qt macro? Since it isn't a reserved keyword this is a perfectly possible scenario. Will that break somehow? // jens