Forums / Developer / Exponential Eclipse Plugin Development / Comment47920
Sylvain Bannier
Tuesday 20 March 2007 3:24:41 am
Hi
I'm working on syntax validation with Nicolas. Currently, we rely on eZTemplate::validateTemplateFile() to check template syntax. It works fine for basic errors like parenthesis or bracket match, but it doesn't check control structures consistency.
For instance, a template without a complete "if" statement like this doesn't reveal any error or warning :
{if true()}
Though, these kind of errors appear in debug. Does anybody know where I can find methods to perform advanced syntax validation ?
Thanks.
http://www.smile.fr