not what you asked, but are you aware of this in template.cfg in XIDE:
fore,FOREACH \c AS IN \rNEXT\r
forei,FOREACH IMPLIED \c IN \rNEXT\r
I know, i use the shortcuts not enough, as i code too little to memorize them, but in this case it might be helpful.
BTW, @Chris: i think i asked for this years ago , but the icing on the cake for this would be:
myItem <Tab>, Cursor jumps behind the "AS "
myType <Tab>, Cursor jumps behind the "IN "
myCollection <Tab>, Cursor jumps to next line
Wolfgang - Yeah, agreed, there are several places where parser errors could become more straightforward. As time passes, more an dmore of them will be improved, it's just not of highest priority. Will log this particular one.
Karl - Every single time I use the FOREACH template, this is exactly what I am also thinking, so it is not that I have forgotten about it . It's just a lot of work to implement it and it will be useful in only 2-3 templates, but will finally do it in one rainy day!
The problem is not writing messages, this is the very easy part. The big task is not letting the parser handle those situations in a general way, but provide specialized error identifying and reporting for every single different case.
Btw, congrats for your Zoe! (which means "life" in Greek)
Yeap, we didn't use to have much rain, in fact had issues with available water 20 years ago. But now we are getting closer to a tropical climate, have 5-6 months of a lot of heat (it's end of September and we're still having temps over 30C), followed by 3 months that rains almost every single day where I live. Then, in the Winter we are now getting snow every year, which was also a rarity in the past.
No, no, there's no climate change, it's a conspiracy!